gomapper

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const RouteNotFoundError = "route does not exist in route map"

Variables

This section is empty.

Functions

func AddRoute

func AddRoute[TSource, TDest any | []any](mapFunc func(source TSource, dest *TDest) error) error

func Map

func Map(source interface{}, dest interface{}) error

Map source to dest

func MapTo

func MapTo[TDest interface{}](source interface{}) (TDest, error)

MapTo Map source to the new dest object

Types

This section is empty.

Jump to

Keyboard shortcuts

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