github.com/mitchellh/mapstructure will no longer be maintained by the author, and github.com/go-viper/mapstructure is nominated as the endorsed fork. - v1.x changes since last release from mitchellh: https://github.com/go-viper/mapstructure/compare/v1.5.0...v1.6.0 - v2.0 changes: https://github.com/go-viper/mapstructure/compare/v1.6.0...v2.0.0 Breaking changes Error is removed in favor of errors.Join (backported from Go 1.20 to preserve compatibility with earlier versions) What's Changed - feat!: update module path - build: update dev env - feature: add StringToBasicTypeHookFunc and support complex - Add an example showing how to use a DecodeHookFunc to parse a custom field. - Remove exposed error type - Replace internal joined error with errors.Join Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
11 lines
176 B
Go
11 lines
176 B
Go
//go:build go1.20
|
|
|
|
package mapstructure
|
|
|
|
import "reflect"
|
|
|
|
// TODO: remove once we drop support for Go <1.20
|
|
func isComparable(v reflect.Value) bool {
|
|
return v.Comparable()
|
|
}
|