Skip to content

Releases

v1.5.0

Choose a tag to compare

@JeremyLoy JeremyLoy released this 18 Nov 16:50
  • 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

Choose a tag to compare

@JeremyLoy JeremyLoy released this 27 Jul 17:29

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

Added support for time.Duration

Choose a tag to compare

@JeremyLoy JeremyLoy released this 17 Mar 18:43

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

v1.2.1

Choose a tag to compare

@JeremyLoy JeremyLoy released this 31 Oct 04:44
3e84cba

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

v1.2.0

Choose a tag to compare

@JeremyLoy JeremyLoy released this 31 Oct 04:14
13c22a5

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

Choose a tag to compare

@JeremyLoy JeremyLoy released this 30 Oct 20:01
2f5eeca

Clearer error messages
Better handling of file i/o errors

v1.1.0

Choose a tag to compare

@JeremyLoy JeremyLoy released this 07 Apr 19:10
2f685fc
  • Added struct tag support!
type MyConfig struct {
  DatabaseURL string `config:"DATABASE_URL"`
}

v1.0.1

Choose a tag to compare

@JeremyLoy JeremyLoy released this 04 Apr 13:21
48f7310
  • Fixed typo where Int16 was being parsed as Int26

v1.0.0

Choose a tag to compare

@JeremyLoy JeremyLoy released this 03 Apr 21:18
8526616

v1.0.0

⌂ 换网址