github.com/nilium/gitlab-runner@v12.5.0+incompatible/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 }