deep

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: Apache-2.0 Imports: 3 Imported by: 21

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 added in v0.5.0

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