v0.4.0-rc2
Pre-release
Pre-release
Breaking changes
reader
package which replaces allsources
packages- Merge functions in merge.go removed (now unneeded)
- Settings reader now reads from multiple sources in order
sources/merger
removedsources/env
removed (replaced byreader
package)- Define
Env
reader-compatibleSource
parse
package generic functions accept source interfaces instead of keyValues map- Update all code comments, example and readme
reader
package:New
takes a Settings struct as its unique argumentNumber
constraint andconstraints.go
file removed- Override:
OverrideWithComparable
function, replacingOverrideWithNumber
,OverrideWithString
,OverrideWithPointerRaw
,OverrideWithInterface
andOverrideWithSliceRaw
- Defaults:
DefaultComparable
function, replacingDefaultNumber
,DefaultString
,DefaultPointerRaw
,DefaultInterface
andDefaultSliceRaw
parse
package: try parsing the empty string ifAllowEmpty(true)
option is used
Features
reader
package: addDefaultOptions
field to theSettings
structreader
package: addFirstKeySet
function
Fixes
reader/parse
package:- settings default properly set
handleDeprecatedKey
function parseBool
returns a bool pointer
- settings default properly set
Documentation
- Review code comments
- fix godoc comments bullet list formatting
- fix godoc comments new lines formatting
- mention default settings for CSV methods
- change
the error context
toits message
- mention nil slices conditions for CSV methods
- review
AcceptEmpty
option comment