github.com/reinventer/defenv (go): Package defenv contains methods for extracting environments variables.  There are two types of methods in a package: ordinary and strict. If there is no environment variable, or if a parsing error occurs, ordinary methods return a default value.  value := defenv.Int("WORKER_NUMBER", 8)  Unlike ordinary methods, strict methods return an error when parsing fails.  value, err := defenv.IntStrict("WORKER_NUMBER", 8)
Keywords: defaults|environment-variables|go