Skip to content

Releases: spf13/viper

v1.3.0

05 Dec 16:18
@bep bep
Compare
Choose a tag to compare
Restrict Travis to >= Go 1.11, use Go Modules, and get the test to pass

v1.1.0: Support customising mapstructure.DecoderConfig for Unmarshal

06 Aug 19:35
@bep bep
Compare
Choose a tag to compare
* Added a new `DecoderConfigOption` type allowing the user to write custom
  functions that can override the default mapstructure.DecoderConfig
  settings

* Added a new `DecodeHook` function which returns
  a `DecoderConfigOption`. This allows the user to easily set their own
  Decode hooks when Unmarshaling

* Updated Unmarshal, UnmarshalKey and defaultDecoderConfig to support variadic
  trailing `DecoderConfigOption` functions to allow for customisation of
  the default  mapstructure.DecoderConfig

* Added a test case with example usage