github.com/zhouyu0/docker-note@v0.0.0-20190722021225-b8d3825084db/pkg/homedir/homedir_others.go (about) 1 // +build !linux 2 3 package homedir // import "github.com/docker/docker/pkg/homedir" 4 5 import ( 6 "errors" 7 ) 8 9 // GetStatic is not needed for non-linux systems. 10 // (Precisely, it is needed only for glibc-based linux systems.) 11 func GetStatic() (string, error) { 12 return "", errors.New("homedir.GetStatic() is not supported on this system") 13 }