deep

package
v3.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 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