Skip to content

Releases: JeremyLoy/config

v1.5.0

18 Nov 16:50
Compare
Choose a tag to compare
  • FromOptional(file) API for easier local dev without ignoring/parsing err

  • support for *url.URL fields

  • internal rearchitecture. If any bugs were introduced please open an issue.

v1.4.0

27 Jul 17:29
Compare
Choose a tag to compare

Adds new Sub method on Builder which populates the target struct starting at the provided prefix

Added support for time.Duration

17 Mar 18:43
Compare
Choose a tag to compare

time.Duration values are now parsed using the time.ParseDuration ruleset!

v1.2.1

31 Oct 04:44
3e84cba
Compare
Choose a tag to compare

fixed bug where zero values for ints and bools would falsely error.

v1.2.0

31 Oct 04:14
13c22a5
Compare
Choose a tag to compare

Error handling!

To(*struct) now returns an error.

  • Bad file i/o no longer panics.
  • conversion errors are no longer ignored

I know this was a much requested feature, I too wanted idiomatic error handling. I just needed to sit on it a bit to find the right solution.

Hoping to improve it in the near future with a concrete and inspectable error type, keep an eye out for that.

v1.1.1

30 Oct 20:01
2f5eeca
Compare
Choose a tag to compare

Clearer error messages
Better handling of file i/o errors

v1.1.0

07 Apr 19:10
2f685fc
Compare
Choose a tag to compare
  • Added struct tag support!
type MyConfig struct {
  DatabaseURL string `config:"DATABASE_URL"`
}

v1.0.1

04 Apr 13:21
48f7310
Compare
Choose a tag to compare
  • Fixed typo where Int16 was being parsed as Int26

v1.0.0

03 Apr 21:18
8526616
Compare
Choose a tag to compare

v1.0.0