Skip to content

Instantly share code, notes, and snippets.

Last active Jul 15, 2017
What would you like to do?
var exeDir = getExeDir()
func getExeDir() string {
if os.Getenv("EXEDIR") != "" {
return os.Getenv("EXEDIR")
} else {
return filepath.Dir(os.Args[0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment