Skip to content

Releases: sajari/env

Add support for float32 and float64 variables

04 Jan 23:24
7028852
Compare
Choose a tag to compare

• Adds env.Float32 and env.Float64 to support float32 and float64 env variables.

Improve error messages

04 Jan 23:23
98fcc0e
Compare
Choose a tag to compare

Adds more detail to error messages for integer and bool parameters.

v0.4.0

23 Nov 23:32
386dafe
Compare
Choose a tag to compare

Changes

  • .github: update go build matrix by @jsok in #6
  • envsvc: add -env-dump-cue flag by @jsok in #5

Full Changelog: v0.3.0...v0.4.0

v0.3.0

12 Feb 00:50
Compare
Choose a tag to compare

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