Documentation ¶
Index ¶
- func DePtr(val any) reflect.Value
- func DePtrType(val any) reflect.Type
- func GetField(m any, field string, strict bool) (any, error)
- func GetFieldNames(m any) []string
- func GetModelDisplay(mdl any, list bool) string
- func GetNewModelSlice(m any) any
- func NewOf(m any, ptr bool) any
- func NewPtr(val any) reflect.Value
- func SetField(m any, field string, value any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFieldNames ¶ added in v1.6.2
func GetModelDisplay ¶
Get a default display for the given model.
If the model implements the DisplayableModel interface, the String() method will be called.
func NewOf ¶ added in v1.6.2
Get a new model from the given model.
If ptr is true, a pointer to the model will be returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.