package
0.0.0-20240912065615-60fd97213283
Repository: https://github.com/go-leo/gox.git
Documentation: pkg.go.dev

# Functions

DecodeHookFuncKinds is a DecodeHookFunc which knows only the Kinds of the source and target types.
DecodeHookFuncTypes is a DecodeHookFunc which has complete information about the source and target types.
DecodeHookFuncValues is a DecodeHookFunc which has complete access to both the source and target values.
ErrorUnset If set to true, then it is an error for there to exist fields in the result that were not set in the decoding process (extra fields).
ErrorUnused If set to true, then it is an error for there to exist keys in the original map that were unused in the decoding process (extra keys).
IgnoreUntaggedFields ignores all struct fields without explicit TagName, comparable to `mapstructure:"-"` as default behaviour.
MatchName is the function used to match the map key to the struct field name or tag.
Metadata is the struct that will contain extra metadata about the decoding.
NewDecoder returns a new decoder.
No description provided by the author
Squash will squash embedded structs.
StringToIP converts strings to net.IP.
StringToIPNet converts strings to net.IPNet.
StringToSlice converts string to []string by splitting on the given sep.
StringToTimeDuration converts strings to time.Duration.
StringToTimeTime converts strings to time.Time.
TagName the tag name that mapstructure reads for field names.
TextUnmarshaller that applies strings to the UnmarshalText function, when the target type implements the encoding.TextUnmarshaler interface.
Unmarshal takes an input structure and uses reflection to translate it to the output structure.
No description provided by the author
WeaklyTypedInput if set to true, the decoder will make the following "weak" conversions: - bools to string (true = "1", false = "0") - numbers to string (base 10) - bools to int/uint (true = 1, false = 0) - strings to int/uint (base implied by prefix) - int to bool (true if value != 0) - string to bool (accepts: 1, t, T, TRUE, true, True, 0, f, F, FALSE, false, False.
ZeroFields if set to true, will zero fields before writing them.

# Type aliases

No description provided by the author