From 4bf421d8482f3497cdeb4fa23debcbbda364492d Mon Sep 17 00:00:00 2001 From: Ingo Oeser Date: Sat, 22 Aug 2015 23:08:05 +0200 Subject: [PATCH] Use filepath.Join in order to get correct results on windows, too. --- general/gochanges.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/general/gochanges.go b/general/gochanges.go index 9918078..e0216c9 100644 --- a/general/gochanges.go +++ b/general/gochanges.go @@ -49,7 +49,7 @@ func GetChangedGoFiles() (result []string) { resultLines := strings.Split(gitDiff, "\n") for _, filename := range resultLines { if strings.HasSuffix(filename, ".go") { - result = append(result, absolutePath+"/"+filename) + result = append(result, filepath.Join(absolutePath, filename)) } } return result