gomapper

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRoute

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

func AutoRoute added in v1.0.1

func AutoRoute[TSource, TDest any | []any](options ...AutoMapperOption) 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

type AutoMapperOption added in v1.0.1

type AutoMapperOption interface {
}

func WithFieldRoute added in v1.0.1

func WithFieldRoute(source, dest string) AutoMapperOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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