mapper

package
v0.0.0-...-0aedd24 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustSimpleMap

func MustSimpleMap(dst any, src any, sets ...func(*Simple))

func MustSimpleMapSlice

func MustSimpleMapSlice(dst any, src any, sets ...func(*Simple))

func SimpleMap

func SimpleMap(dst any, src any, sets ...func(*Simple)) (err error)

func SimpleMapSlice

func SimpleMapSlice(dst any, src any, sets ...func(*Simple)) (err error)

func WithFieldSimple

func WithFieldSimple(f func(srcField string) (dstField string)) func(*Simple)

Types

type Simple

type Simple struct {
	// contains filtered or unexported fields
}

func NewSimple

func NewSimple(sets ...func(*Simple)) *Simple

func (*Simple) Map

func (s *Simple) Map(dst any, src any) (err error)

func (*Simple) MapSlice

func (s *Simple) MapSlice(dst any, src any) (err error)

Jump to

Keyboard shortcuts

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