deep

package
v0.0.0-...-6c7272e Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package deep provides reflection based methods for copying and cloning structs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(v interface{}) (interface{}, error)

Clone makes a deep copy of v.

func Copy

func Copy(dst, src interface{}) error

Copy recursively copies all fields, map and slice elements from the value src to the pointer dst.

func MustClone

func MustClone(v interface{}) interface{}

MustClone makes a deep copy of v, or panics if it could not.

Types

This section is empty.

Jump to

Keyboard shortcuts

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