Documentation
¶
Index ¶
- func CopyPointerSlice(ptrA interface{}, ptrB interface{})
- func CreatePointerToSliceOfTypeAndSize(value interface{}, size int) interface{}
- func GetTags(v any, tagName string) []string
- func GetTypedValue(value interface{}) reflect.Value
- func InitializeMapsAndSlices(value interface{})
- func InterfaceToInterfaceSlice(in interface{}) ([]interface{}, error)
- func InterfaceToMapInterfaceInterface(m interface{}) (map[interface{}]interface{}, error)
- func IsPointerToMap(value interface{}) bool
- func IsPointerToSlice(value interface{}) bool
- func IsPointerToStruct(value interface{}) bool
- func IsSlice(value interface{}) bool
- func IsStructOrPointerToStruct(value interface{}) bool
- func ResolveBaseType(value interface{}) reflect.Type
- func ResolveBaseTypeAndValue(value interface{}) (reflect.Type, reflect.Value)
- func ResolveValueTo(value interface{}, kind reflect.Kind) (reflect.Type, reflect.Value)
- func SliceInterfaceIterator(slice interface{}) *sliceIterator
- type Map
- type Slice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyPointerSlice ¶
func CopyPointerSlice(ptrA interface{}, ptrB interface{})
func CreatePointerToSliceOfTypeAndSize ¶
func CreatePointerToSliceOfTypeAndSize(value interface{}, size int) interface{}
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 interface{})
func InterfaceToInterfaceSlice ¶
func InterfaceToInterfaceSlice(in interface{}) ([]interface{}, error)
func InterfaceToMapInterfaceInterface ¶
func InterfaceToMapInterfaceInterface(m interface{}) (map[interface{}]interface{}, error)
func IsPointerToMap ¶
func IsPointerToMap(value interface{}) bool
func IsPointerToSlice ¶
func IsPointerToSlice(value interface{}) bool
func IsPointerToStruct ¶
func IsPointerToStruct(value interface{}) bool
func IsStructOrPointerToStruct ¶
func IsStructOrPointerToStruct(value interface{}) bool
func ResolveBaseType ¶
func ResolveBaseTypeAndValue ¶
func ResolveValueTo ¶
func SliceInterfaceIterator ¶
func SliceInterfaceIterator(slice interface{}) *sliceIterator
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.