Documentation
¶
Overview ¶
Package reflectutil contains various utilities that are useful when working with reflection
Index ¶
- func CreateNewForType(model interface{}) *interface{}
- func GetModelName(model interface{}) string
- func NewFromType(modelType reflect.Type) interface{}
- func SetSlice(valueSlice []interface{}, fieldValue reflect.Value)
- func Unwrap(obj interface{}) interface{}
- func UnwrapType(typ reflect.Type) (unwrapped reflect.Type)
- func UnwrapValue(typ reflect.Value) (unwrapped reflect.Value)
- func Wrap(obj interface{}) interface{}
- func WrapValue(val reflect.Value) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNewForType ¶
func CreateNewForType(model interface{}) *interface{}
func GetModelName ¶
func GetModelName(model interface{}) string
func NewFromType ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.