Documentation ¶
Index ¶
- func CopyPointerSlice(ptrA any, ptrB any)
- func CreatePointerToSliceOfTypeAndSize(value any, size int) any
- func GetTags(v any, tagName string) []string
- func GetTypedValue(value any) reflect.Value
- func InitializeMapsAndSlices(value any)
- func InterfaceToInterfaceSlice(in interface{}) ([]interface{}, error)
- func InterfaceToMapInterfaceInterface(m interface{}) (map[interface{}]interface{}, error)
- func IsPointerToMap(value any) bool
- func IsPointerToSlice(value any) bool
- func IsPointerToStruct(value any) bool
- func IsSlice(value any) bool
- func IsStructOrPointerToStruct(value any) bool
- func ResolveBaseType(value any) reflect.Type
- func ResolveBaseTypeAndValue(value any) (reflect.Type, reflect.Value)
- func ResolveValueTo(value any, kind reflect.Kind) (reflect.Type, reflect.Value)
- func SliceInterfaceIterator(slice interface{}) *sliceIterator
- func ValueToPointerValue(val any) any
- type Map
- type Slice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyPointerSlice ¶
func GetTags ¶ added in v0.21.5
GetTags reads the values of tags with the name tagName. Tag values get extracted until the first comma. Best suited to read json and db tags.
func GetTypedValue ¶
func InitializeMapsAndSlices ¶
func InitializeMapsAndSlices(value any)
func InterfaceToInterfaceSlice ¶
func InterfaceToInterfaceSlice(in interface{}) ([]interface{}, error)
func InterfaceToMapInterfaceInterface ¶
func InterfaceToMapInterfaceInterface(m interface{}) (map[interface{}]interface{}, error)
func IsPointerToMap ¶
func IsPointerToSlice ¶
func IsPointerToStruct ¶
func ResolveBaseType ¶
func ResolveBaseTypeAndValue ¶
func ResolveValueTo ¶
func SliceInterfaceIterator ¶
func SliceInterfaceIterator(slice interface{}) *sliceIterator
func ValueToPointerValue ¶ added in v0.26.0
Types ¶
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
func (*Map) NewElement ¶
func (m *Map) NewElement() interface{}
Click to show internal directories.
Click to hide internal directories.