merge

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(dst interface{}, src interface{}, opts ...Option) error

Copy struct<->struct 各种类型结构体之间的field copy

func MapStruct

func MapStruct(dst interface{}, src interface{}, opts ...func(cfg *mapstructure.DecoderConfig)) error

MapStruct map<->struct map和结构体相互转化

func Struct

func Struct(dst, src interface{}, opts ...Option) error

Types

type Option

type Option func(opts *copier.Option)

Jump to

Keyboard shortcuts

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