Categorygithub.com/ungerik/go-reflection
modulepackage
0.0.0-20240905081803-708928fe0862
Repository: https://github.com/ungerik/go-reflection.git
Documentation: pkg.go.dev

# README

go-reflection

Utilities extending the Go reflect package

# Functions

No description provided by the author
DerefValue dereferences val until a non pointer type or nil is found.
No description provided by the author
EnumFlatExportedStructFields returns reflect.StructField and reflect.Value of flattened struct fields, meaning that the fields of anonoymous embedded fields are flattened to the top level of the struct.
FlatExportedNamedStructFields returns a slice of NamedStructField of flattened struct fields, meaning that the fields of anonoymous embedded fields are flattened to the top level of the struct.
FlatExportedStructFields returns a slice of StructFieldValue of flattened struct fields, meaning that the fields of anonoymous embedded fields are flattened to the top level of the struct.
FlatExportedStructFieldsIter returns an iterator over flattened struct fields, meaning that the fields of anonoymous embedded fields are flattened to the top level of the struct.
FlatExportedStructFieldValueNameMap returns a slice of StructFieldValueName of flattened struct fields, meaning that the fields of anonoymous embedded fields are flattened to the top level of the struct.
FlatExportedStructFieldValueNames returns a slice of StructFieldValueName of flattened struct fields, meaning that the fields of anonoymous embedded fields are flattened to the top level of the struct.
FlatStructFieldCount returns the number of flattened struct fields, meaning that the fields of anonoymous embedded fields are flattened to the top level of the struct.
FlatStructFieldNames returns the names of flattened struct fields, meaning that the fields of anonoymous embedded fields are flattened to the top level of the struct.
FlatStructFieldTags returns the tag values for a tagKey of flattened struct fields, meaning that the fields of anonoymous embedded fields are flattened to the top level of the struct.
FlatStructFieldTagsOrNames returns the tag values for tagKey or the names of the field if no tag with tagKey is defined at a struct field.
FlatStructFieldValues returns the values of flattened struct fields, meaning that the fields of anonoymous embedded fields are flattened to the top level of the struct.
IsNil returns if val is of a type that can be nil and if it is nil.
IsZero returns if underlying value of v is the zero (default) value of its type, or if v itself is nil.
No description provided by the author
ValueOf differs from reflect.ValueOf in that it returns the argument val casted to reflect.Value if val is alread a reflect.Value.
ValuesToInterfaces returns a slice of interface{} by calling reflect.Value.Interfac() for all values.
ZeroValueExportedStructFieldNames returns the names of exported zero (default) value struct fields.

# Variables

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author