Skip to content

smallnest/deepcopy

 
 

Repository files navigation

deepCopy

License GoDoc build status Go Report Card

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

  • Support Embed type
  • Support Pointer deep copy
  • Support Map
  • Support Slice
  • Support Interface
  • Support Channel;

Forked from mohae/deepcopy and add generic support.

Usage

   cpy := deepcopy.Copy[T](orig)

About

Deep copy things

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%