vendor: update all dependencies

This commit is contained in:
Nick Craig-Wood 2018-06-17 17:59:12 +01:00
parent 3f0789e2db
commit 08021c4636
2474 changed files with 435818 additions and 282709 deletions

17
vendor/github.com/pengsrc/go-shared/utils/home.go generated vendored Normal file
View file

@ -0,0 +1,17 @@
package utils
import (
"os"
"runtime"
)
// GetHome returns the home directory.
func GetHome() string {
if runtime.GOOS == "windows" {
home := os.Getenv("HOMEDRIVE") + os.Getenv("HOMEPATH")
if home == "" {
home = os.Getenv("USERPROFILE")
}
}
return os.Getenv("HOME")
}