package
Version:
v1.7.0-dev-20191011
Opens a new window with list of versions in this module.
Published: Oct 11, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 21
Opens a new window with list of known importers.
Documentation
¶
Package deep provides reflection based methods for copying and cloning
structs.
func Clone(v interface{}) (interface{}, error)
Clone makes a deep copy of v.
func Copy(dst, src interface{}) error
Copy recursively copies all fields, map and slice elements from the value
src to the pointer dst.
func MustClone(v interface{}) interface{}
MustClone makes a deep copy of v, or panics if it could not.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.