env
env copied to clipboard
Go support library to aide and enhance using environment variables for configuration
Setting ZERO value conflicts with flag processing libraries. Imagine that you want your app to support both flags and env vars. First you want your flags to be processd by...
Particular reason for using fmt on variable assigment? ``` go 40 if newVar.Default != reflect.ValueOf(nil) { 41 fmt.Println("setting default:", newVar.Default.String()) 42 newVar.SetValue(newVar.Default) 43 } else { 44 fmt.Println("No default; setting...