merge

package
v0.3.37 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: MIT Imports: 3 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

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

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

func CopyStruct added in v0.3.20

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

func MapStruct

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

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

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