package
Version:
v1.1.1
Opens a new window with list of versions in this module.
Published: Jul 22, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 4
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 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.