1
0
Fork 0
Dieser Commit ist enthalten in:
astaxie 2017-04-24 21:00:39 +08:00
Ursprung 6afbafa250
Commit ffbe29ae22
1 geänderte Dateien mit 0 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -60,9 +60,6 @@ func GetGOPATHs() []string {
// IsInGOPATH checks whether the path is inside of any GOPATH or not
func IsInGOPATH(thePath string) bool {
if runtime.GOOS == "windows" {
thePath = filepath.ToSlash(thePath)
}
for _, gopath := range GetGOPATHs() {
if strings.Contains(thePath, filepath.Join(gopath, "src")) {
return true