diff options
author | Bas van Kervel <basvankervel@ziggo.nl> | 2015-05-12 20:24:11 +0800 |
---|---|---|
committer | Bas van Kervel <basvankervel@ziggo.nl> | 2015-05-12 20:24:11 +0800 |
commit | b79dd188d916da7adbf448dc27b0c59a04e0938d (patch) | |
tree | 7980ae848a916171fbc65fb958eebdf0c98406dc /update-license.go | |
parent | d82caa5ce38705d2dcdc2ba15c93df9325504e34 (diff) | |
download | dexon-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.gz dexon-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.zst dexon-b79dd188d916da7adbf448dc27b0c59a04e0938d.zip |
replaced several path.* with filepath.* which is platform independent
Diffstat (limited to 'update-license.go')
-rw-r--r-- | update-license.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/update-license.go b/update-license.go index e55732a53..3ab81f98d 100644 --- a/update-license.go +++ b/update-license.go @@ -26,13 +26,13 @@ import ( "io/ioutil" "os" "os/exec" - "path" "regexp" "runtime" "sort" "strings" "sync" "text/template" + "path/filepath" ) var ( @@ -144,7 +144,7 @@ func getFiles(out chan<- string) { return } } - ext := path.Ext(line) + ext := filepath.Ext(line) for _, wantExt := range extensions { if ext == wantExt { goto send |