package env import "os" func GetEnvWithDefault(name, def string) string { env := os.Getenv(name) if len(env) != 0 { return env } return def }