typetohtml

package
v0.0.0-...-65d8f4c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL