merge

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 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) interface{}

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

func MapStruct

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

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

func Struct

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

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