Skip to content

alexkreidler/deepcopy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deepCopy

GoDoc

DeepCopy makes deep copies of things: unexported field values are not copied.

It also allows for returning a pointer to the copied object, which is useful for using the copied object with more reflection operations.

This implementation of deepcopy is not as optimized as some other implementations (e.g. mitchellh/copystructure). We also don't provide benchmarks.

The tests probably don't work as of now because of the addition of the options.

Usage

cpy := deepcopy.Copy(orig, Options{ReturnPointer:false})

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%