This repository has been archived by the owner on Oct 2, 2020. It is now read-only.
Releases: uber-go/mapdecode
Releases · uber-go/mapdecode
v0.3.1
v0.3.0
-
Implement
FieldHook
s natively in mapstructure -
Breaking: Changed function signature of
FieldHook
to remove unecessary
from
parameter.Before:
func(from reflect.Type, to reflect.StructField, data reflect.Value) (reflect.Value, error)
After:
func(dest reflect.StructField, srcData reflect.Value) (reflect.Value, error)
v0.2.0
- Added
DecodeHook
to intercept values before they are decoded. - Added
FieldHook
to intercept values before they are decoded into specific
struct fields. - Decode now parses strings if they are found in place of a float, boolean,
or integer. - Embedded structs and maps will now be inlined into their parent structs.