Documentation ¶
Index ¶
- func Map(src, dst interface{}) error
- func MapArray[S, D any](src []S, dst []D) (err error)
- func MapArrayAs[S, D any](src []S, dst D) []D
- func MapArrayAsWithError[S, D any](src []S, dst D) (result []D, err error)
- func MapArrayOption[S, D any](src []S, dst []D, option *converter.StructOption) (err error)
- func MapArrayOptionRender[S, D any](src []S, dst []D, option *converter.StructOption, ...) (err error)
- func MapArrayRender[S, D any](src []S, dst []D, render func(interface{}, interface{})) (err error)
- func MapAs[T any](src interface{}, dst T) (result T)
- func MapAsWithError[T any](src interface{}, dst T) (result T, err error)
- func MapOption(src, dst interface{}, option *converter.StructOption) (err error)
- func MapOptionRender(src, dst interface{}, option *converter.StructOption, ...) (err error)
- func MapRender(src, dst interface{}, render func(interface{}, interface{})) (err error)
- func RegisterRender[S, D any](src S, dst D, render func(interface{}, interface{}))
- type Render
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapArrayAs ¶
func MapArrayAs[S, D any](src []S, dst D) []D
func MapArrayAsWithError ¶
func MapArrayOption ¶
func MapArrayOption[S, D any](src []S, dst []D, option *converter.StructOption) (err error)
func MapArrayOptionRender ¶
func MapArrayOptionRender[S, D any](src []S, dst []D, option *converter.StructOption, render func(interface{}, interface{})) (err error)
func MapArrayRender ¶
func MapAsWithError ¶
func MapOption ¶
func MapOption(src, dst interface{}, option *converter.StructOption) (err error)
func MapOptionRender ¶
func MapOptionRender(src, dst interface{}, option *converter.StructOption, render func(interface{}, interface{})) (err error)
func MapRender ¶
func MapRender(src, dst interface{}, render func(interface{}, interface{})) (err error)
func RegisterRender ¶
func RegisterRender[S, D any](src S, dst D, render func(interface{}, interface{}))
Types ¶
Click to show internal directories.
Click to hide internal directories.