deepcopy

package
v0.0.0-...-4845449 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(value interface{}) interface{}

func CopyTranslate

func CopyTranslate(value interface{}, callback TranslateFunc) interface{}

func CopyTranslateSteps

func CopyTranslateSteps(value interface{}, callback TranslateFunc, steps Steps, visited VisitedMap) interface{}

Types

type InterfaceStep

type InterfaceStep struct {
	// contains filtered or unexported fields
}

func (InterfaceStep) String

func (v InterfaceStep) String() string

type MapKeyStep

type MapKeyStep struct {
	// contains filtered or unexported fields
}

func (MapKeyStep) String

func (v MapKeyStep) String() string

type PointerStep

type PointerStep struct{}

func (PointerStep) String

func (v PointerStep) String() string

type SliceIndexStep

type SliceIndexStep struct {
	// contains filtered or unexported fields
}

func (SliceIndexStep) String

func (v SliceIndexStep) String() string

type Steps

type Steps []fmt.Stringer

func (Steps) Add

func (s Steps) Add(step fmt.Stringer) Steps

func (Steps) String

func (s Steps) String() string

type StructFieldStep

type StructFieldStep struct {
	// contains filtered or unexported fields
}

func (StructFieldStep) String

func (v StructFieldStep) String() string

type TranslateFunc

type TranslateFunc func(original, clone reflect.Value, steps Steps)

type TypeStep

type TypeStep struct {
	// contains filtered or unexported fields
}

func (TypeStep) String

func (v TypeStep) String() string

type VisitedMap

type VisitedMap map[uintptr]bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL