Releases: sajari/env
Releases · sajari/env
Add support for float32 and float64 variables
Improve error messages
Adds more detail to error messages for integer and bool parameters.
v0.4.0
v0.3.0
Changes
- add URL flag
- remove Travis CI
- switch to GitHub Actions
URL flag usage
Before:
url1Str = env.String("URL_1", "...") // url1Str is a *string
url1, err := url.Parse(*url1Str)
if err != nil {
log.Fatalf("Could not parse URL 1: %v", err)
}
After:
url1 = env.URL("URL_1", "...") // url1 is a *url.URL