mapping

package
v0.0.0-...-c955e10 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldPair

type FieldPair struct {
	Src     *str.Field
	Dest    *str.Field
	Casters []mapcstd.Caster
}

type Mapper

type Mapper struct {
	FieldMappers []mapcstd.FieldMapper
	TypeMappers  []mapcstd.TypeMapper
}

func (Mapper) NewMapping

func (m Mapper) NewMapping(src, dest any, outPkgPath string) (*Mapping, error)

type Mapping

type Mapping struct {
	Src        *str.Struct
	Dest       *str.Struct
	FieldPairs []*FieldPair
}

Jump to

Keyboard shortcuts

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