README ¶ deepcopy library to make deep copies in go newValue := deepcopy.Do(value) It manages when struct have pointers to parents/children. e.g: type MyStruct struct { Parent *MyStruct Children []*MyStruct } Unexported fields are not copied. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Copy(i interface{}) interface{} Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Copy ¶ func Copy(i interface{}) interface{} Copy takes any objects and create a deep copy of it, and all its fields or elements. In case of reflect.Invalid, reflect.Chan and reflect.UnsafePointer types, it returns nil. Types ¶ This section is empty. Source Files ¶ View all Source files deepcopy.go Click to show internal directories. Click to hide internal directories.