Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TypeMapperConv ¶
type TypeMapperConv interface { KnownTypes() []string KnownCustomFields() []string HasMapping(kind string) bool HasCustomMapping(fieldName string) bool // MapToHTML(kind string, fieldValue reflect.Value) (htmlwrapper.Elm, error) MapToHTML(structField reflect.StructField, value reflect.Value, refStruct interface{}) (htmlwrapper.Elm, error) CustomMapToHTML(fieldName string, refStruct interface{}) (htmlwrapper.Elm, error) RegisterMapping(forKind string, fn func(structField reflect.StructField, value reflect.Value, refStruct interface{}) htmlwrapper.Elm) RegisterCustomFieldMapping(fieldName string, fn func(fieldName string, refStruct interface{}) htmlwrapper.Elm) GetMapping(kind string) (func(structField reflect.StructField, value reflect.Value, refStruct interface{}) htmlwrapper.Elm, error) GetCustomMapping(fieldName string) (func(fieldName string, refStruct interface{}) htmlwrapper.Elm, error) }
func NewTypeMapperConv ¶
func NewTypeMapperConv() TypeMapperConv
Click to show internal directories.
Click to hide internal directories.