package
Version:
v3.3.0+incompatible
Opens a new window with list of versions in this module.
Published: Jan 13, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
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.