Documentation ¶
Index ¶
- Variables
- func PopulateStruct(b interface{}, tagName string, ...) error
- func ToAny(s string, t reflect.Type) (reflect.Value, error)
- func TryAnyCase(name string, getter func(string) (interface{}, bool)) (interface{}, bool)
- func TryFind(filedName, tagValue string, getter func(string) (interface{}, bool)) (interface{}, bool)
- type Caster
Constants ¶
This section is empty.
Variables ¶
View Source
var (
InvalidValue = reflect.Value{}
)
nolint:gochecknoglobals
Functions ¶
func PopulateStruct ¶
func PopulateStruct(b interface{}, tagName string, getter func(filedName, tagValue string) (interface{}, bool)) error
PopulateStruct populates the properties to the structure's field. nolint:goerr113
func TryAnyCase ¶
TryAnyCase tries to find value by name in any-case.
Types ¶
Click to show internal directories.
Click to hide internal directories.