clonerex
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package clonerex is an example package for the cloner tool.
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
Types¶
typeCloneable¶added inv1.90.0
type Cloneable interface {Clone()Cloneable}Cloneable is an interface with a Clone method.
typeCloneableImpl¶added inv1.90.0
type CloneableImpl struct {Valueint}CloneableImpl is a concrete type that implements Cloneable.
func (*CloneableImpl)Clone¶added inv1.90.0
func (c *CloneableImpl) Clone()Cloneable
typeDeeplyNestedMap¶added inv1.92.0
type DeeplyNestedMap struct {ThreeLevels map[string]map[string]map[string]intFourLevels map[string]map[string]map[string]map[string]*SliceContainer}DeeplyNestedMap tests arbitrary depth of map nesting (3+ levels)
func (*DeeplyNestedMap)Clone¶added inv1.92.0
func (src *DeeplyNestedMap) Clone() *DeeplyNestedMap
Clone makes a deep copy of DeeplyNestedMap.The result aliases no memory with the original.
typeInterfaceContainer¶added inv1.90.0
type InterfaceContainer struct {InterfaceCloneable}InterfaceContainer has a pointer to an interface field, which teststhe special handling for interface types in the cloner.
func (*InterfaceContainer)Clone¶added inv1.90.0
func (src *InterfaceContainer) Clone() *InterfaceContainer
Clone makes a deep copy of InterfaceContainer.The result aliases no memory with the original.
typeMapWithPointers¶added inv1.92.0
type MapWithPointers struct {Nested map[string]*intWithCloneMethod map[string]*SliceContainerCloneInterface map[string]Cloneable}func (*MapWithPointers)Clone¶added inv1.92.0
func (src *MapWithPointers) Clone() *MapWithPointers
Clone makes a deep copy of MapWithPointers.The result aliases no memory with the original.
typeSliceContainer¶
type SliceContainer struct {Slice []*int}func (*SliceContainer)Clone¶
func (src *SliceContainer) Clone() *SliceContainer
Clone makes a deep copy of SliceContainer.The result aliases no memory with the original.