mapper

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Map

func Map(src, dst interface{}) error

func MapArray

func MapArray[S, D any](src []S, dst []D) (err error)

func MapArrayAs

func MapArrayAs[S, D any](src []S, dst D) []D

func MapArrayAsWithError

func MapArrayAsWithError[S, D any](src []S, dst D) (result []D, err error)

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 MapArrayRender[S, D any](src []S, dst []D, render func(interface{}, interface{})) (err error)

func MapAs

func MapAs[T any](src interface{}, dst T) (result T)

func MapAsWithError

func MapAsWithError[T any](src interface{}, dst T) (result T, err error)

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

type Render

type Render func(interface{}, interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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