deepcopy

package
v0.0.0-...-d506493 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

包deepcopy使用反射来创建对象的深拷贝。

此包的维护源代码来自:https://github.com/mohae/deepcopy md5:5b2714e1c20589de

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(src interface{}) interface{}

Copy 创建一个深度复制的副本,将传递给它的内容返回为一个接口{}。返回的值需要进行类型断言以获取正确的类型。 md5:e0d2ca231ef6877f

Types

type Interface

type Interface interface {
	DeepCopy() interface{}
}

用于将复制过程委派给类型的接口. md5:1c1a67064d6703f2

Jump to

Keyboard shortcuts

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