deepcopy

package
v2.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package deepcopy makes deep copies of things using reflection.

This package is maintained from: https://github.com/mohae/deepcopy

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(src any) any

Copy creates a deep copy of whatever is passed to it and returns the copy in an any. The returned value will need to be asserted to the correct type.

Types

type Interface

type Interface interface {
	DeepCopy() any
}

Interface for delegating copy process to type

Jump to

Keyboard shortcuts

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