Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReflectCache ¶
type ReflectCache struct {
// contains filtered or unexported fields
}
ReflectCache caches the types for faster look up times.
func NewReflectCache ¶
func NewReflectCache() *ReflectCache
NewReflectCache creates a new ReflectCache that caches the types for faster look up times.
func (*ReflectCache) Reflect ¶
func (r *ReflectCache) Reflect(value interface{}) (ReflectInfo, error)
Reflect will return a Reflectstruct of a given type.
type ReflectField ¶
type ReflectField struct { Name string Tag ReflectTag Value reflect.Value }
type ReflectInfo ¶
type ReflectStruct ¶
type ReflectStruct struct { Name string Fields map[string]ReflectField Value reflect.Value }
func (ReflectStruct) FieldNames ¶
func (r ReflectStruct) FieldNames() []string
FieldNames returns the field names for a given type.
func (ReflectStruct) Kind ¶
func (r ReflectStruct) Kind() reflect.Kind
type ReflectTag ¶
type ReflectValue ¶
func (ReflectValue) Kind ¶
func (r ReflectValue) Kind() reflect.Kind
Click to show internal directories.
Click to hide internal directories.