From 450402b1e24033b5eda00afba275d987b02721e9 Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Mon, 1 Apr 2019 20:24:31 +0200 Subject: [PATCH] Fix ending separator for the gopath --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index fe22d73..4cf3824 100644 --- a/main.go +++ b/main.go @@ -16,7 +16,7 @@ import ( func main() { setDefaults() viper.AutomaticEnv() - gosrc := utils.GetGOPATH() + afero.FilePathSeparator + "src" + afero.FilePathSeparator + gosrc := strings.TrimSuffix(utils.GetGOPATH(), afero.FilePathSeparator ) + afero.FilePathSeparator + "src" + afero.FilePathSeparator pwd, err := os.Getwd() if err != nil { logrus.Error(err)