1 package osx 2 3 import "os" 4 5 func GetenvDefault(key string, def string) string { 6 if value := os.Getenv(key); value != "" { 7 return value 8 } 9 return def 10 } 11
View as plain text