merge

package
v2.0.0-alpha.19 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

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

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

func MapStruct

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

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

func Struct

func Struct[A, 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