No changes since v0.3.1. This release is committing to making no breaking changes to the current API in the 1.X series.
- Support multierr 1.0.
-
Implement
FieldHook
s natively in mapstructure -
Breaking: Changed function signature of
FieldHook
to remove unecessaryfrom
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)
- 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.
- Initial release.