main.go
func getGoPath() string {
	path := os.Getenv("GOPATH")
	if path == "" {
		user, err := user.Current()
		kingpin.FatalIfError(err, "")
		path = filepath.Join(user.HomeDir, "go")
	}
	return path
}
func getGoPath() string {
	path := os.Getenv("GOPATH")
	if path == "" {
		user, err := user.Current()
		kingpin.FatalIfError(err, "")
		path = filepath.Join(user.HomeDir, "go")
	}
	return path
}
func getGoPath ( ) string { path := os . Getenv ( " " ) if path == " " { user , err := user . Current ( ) kingpin . FatalIfError ( err , " " ) path = filepath . Join ( user . HomeDir , " " ) } return path }
// Go 1.8 compatible GOPATH.
Go 1 . 8 compatible GOPATH .