package
Version:
v0.0.0-...-6c7272e
Opens a new window with list of versions in this module.
Published: Dec 13, 2022
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.