package
Version:
v1.4.0
Opens a new window with list of versions in this module.
Published: Jul 22, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package copier provides utility that copy element between structs
func Copy(toValue interface{}, fromValue interface{}, opts ...func(*Config)) (err error)
Copy copy things from source to destination
func CopyMap(dst, src map[string]interface{}, opts ...func(*Config))
func IgnoreEmptyValue(config *Config)
IgnoreEmptyValue option to config IgnoreEmptyValue, any empty or nil value will not copy from source to destination
type Config struct {
IgnoreEmptyValue bool
}
Config configurations for Copy function
Source Files
¶
Click to show internal directories.
Click to hide internal directories.