github.com/alloyci/alloy-runner@v1.0.1-0.20180222164613-925503ccafd6/helpers/home_dir.go (about) 1 package helpers 2 3 import ( 4 "github.com/docker/docker/pkg/homedir" 5 "os" 6 ) 7 8 func GetCurrentWorkingDirectory() string { 9 dir, err := os.Getwd() 10 if err == nil { 11 return dir 12 } 13 return "" 14 } 15 16 func GetHomeDir() string { 17 return homedir.Get() 18 }