Documentation
¶
Index ¶
- func FieldsOfReflectTypeCB(ityp reflect.Type, appendDotField, appendField func(*IndexableStructField))
- func Filter(s any, f func(item any) bool) any
- func GetStruct(t reflect.Type) interface{}
- type IndexableStructField
- type IndexableStructFields
- func (f IndexableStructFields) Get(name string) *IndexableStructField
- func (f IndexableStructFields) Len() int
- func (f IndexableStructFields) Only(names ...string) (s IndexableStructFields)
- func (f IndexableStructFields) String() string
- func (f IndexableStructFields) Uniquefy() (r IndexableStructFields)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FieldsOfReflectTypeCB ¶
func FieldsOfReflectTypeCB(ityp reflect.Type, appendDotField, appendField func(*IndexableStructField))
Types ¶
type IndexableStructField ¶
type IndexableStructField struct { reflect.StructField Index []int Names []string }
func (*IndexableStructField) String ¶
func (f *IndexableStructField) String() string
type IndexableStructFields ¶
type IndexableStructFields []*IndexableStructField
func FieldsOfReflectType ¶
func FieldsOfReflectType(ityp reflect.Type) (dotFields, fields IndexableStructFields)
func UniqueFieldsOfReflectType ¶
func UniqueFieldsOfReflectType(ityp reflect.Type) (dotFields, result IndexableStructFields)
func (IndexableStructFields) Get ¶
func (f IndexableStructFields) Get(name string) *IndexableStructField
func (IndexableStructFields) Len ¶
func (f IndexableStructFields) Len() int
func (IndexableStructFields) Only ¶
func (f IndexableStructFields) Only(names ...string) (s IndexableStructFields)
func (IndexableStructFields) String ¶
func (f IndexableStructFields) String() string
func (IndexableStructFields) Uniquefy ¶
func (f IndexableStructFields) Uniquefy() (r IndexableStructFields)
Click to show internal directories.
Click to hide internal directories.