package
Version:
v0.0.0-...-fe5d015
Opens a new window with list of versions in this module.
Published: Mar 8, 2022
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var (
ErrInvalidCopyDestination = errors.New("copy destination is invalid")
ErrInvalidCopyFrom = errors.New("copy from is invalid")
ErrMapKeyNotMatch = errors.New("map's key type doesn't match")
ErrNotSupported = errors.New("not supported")
)
func Copy(toValue interface{}, fromValue interface{}) (err error)
Copy copy things
func CopyWithOption(toValue interface{}, fromValue interface{}, opt Option) (err error)
type Option struct {
IgnoreEmpty bool
DeepCopy bool
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.