merge

package
v0.2.10-2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy[A any, B any](dst A, src B, opts ...Option) result.Result[A]

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

func MapStruct

func MapStruct[A any, B any](dst A, src B, opts ...func(cfg *mapstructure.DecoderConfig)) (r result.Result[A])

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

func Struct

func Struct[A any, B any](dst A, src B, opts ...Option) result.Result[A]

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