Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidCopyDestination = copier.ErrInvalidCopyDestination ErrInvalidCopyFrom = copier.ErrInvalidCopyFrom ErrMapKeyNotMatch = copier.ErrMapKeyNotMatch ErrNotSupported = copier.ErrNotSupported )
Functions ¶
func CopyWithOption ¶
Types ¶
type Option ¶
type Option struct {
// setting this value to true will ignore copying zero values of all the fields, including bools, as well as a
// struct having all it's fields set to their zero values respectively (see IsZero() in reflect/value.go)
IgnoreEmpty bool
DeepCopy bool
}
Option sets copy options
Click to show internal directories.
Click to hide internal directories.