Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeepCopySlice ¶
func DeepCopySlice[E DeepCopier[E], S ~[]E](slice S) S
func DeepCopySliceRefs ¶
func DeepCopySliceRefs[E any, D RefDeepCopier[E], S ~[]E](slice S) []E
DeepCopySliceRefs runs DeepCopy on the references of the elements of the slice and returns the created structs.
Types ¶
type DeepCopier ¶
type DeepCopier[E any] interface { DeepCopy() E }
type RefDeepCopier ¶
type RefDeepCopier[E any] interface { *E DeepCopier[*E] }
Click to show internal directories.
Click to hide internal directories.