Skip to content

Releases: spf13/viper

v1.6.0

06 Dec 14:25
Compare
Choose a tag to compare

Changes

Added

  • Global UnmarshalExact method
  • StringReplacer interface for custom environment key replacing logic
  • GolangCI Lint
  • INI support
  • Key delimiter made configurable
  • Support for config files without extensions

Changed

  • Moved to GitHub actions build from Travis

Fixed

  • IsSet no longer returns true when an unset key has a flags bound
  • SafeWriteConfigAs works as expected

Happy Holidays!

v1.5.0

01 Nov 11:50
v1.5.0
Compare
Choose a tag to compare

Documentation and other fixes

v1.4.0: Add API for setting file permissions; Uint support; ...

24 May 20:04
Compare
Choose a tag to compare

b5bf975 Clean up dependencies
fccfc2c Add API for setting file permissions
7a605a5 Uint Support (#681)

v1.3.2: Remove superflous insensitiviseMaps in Unmarshal methods

13 Mar 09:32
@bep bep
Compare
Choose a tag to compare

v1.3.1

07 Dec 10:07
@bep bep
6d33b5a
Compare
Choose a tag to compare
Make the map in MergeConfigMap case insensitive

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