copier

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 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(src, dst any, options ...copyOption) error

Copy src to dst.

func WithCaseInsensitive

func WithCaseInsensitive() copyOption

WithCaseInsensitive case-insensitive.

func WithDeepCopy

func WithDeepCopy() copyOption

WithDeepCopy deep copy fields.

func WithFieldNameMapping

func WithFieldNameMapping(fieldMapping ...copier.FieldNameMapping) copyOption

WithFieldNameMapping field name mapping.

func WithIgnoreEmpty

func WithIgnoreEmpty() copyOption

WithIgnoreEmpty ignore empty fields.

func WithTypeConverters

func WithTypeConverters(converters ...TypeConverter) copyOption

Types

type TypeConverter

type TypeConverter = copier.TypeConverter

Jump to

Keyboard shortcuts

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