deepcopy

package module
Version: v0.0.0-...-7f45deb Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2016 License: Apache-2.0 Imports: 2 Imported by: 51

README

deepcopy Travis CI Status Coverage Status GoDoc

deepcopy provides a basic implementation of deep copying using json.Marshal and json.Unmarshal. Hence it is not very performant, and it only works for exported fields.

See gopkg.in for usage and docs.

Documentation

Overview

package deepcopy provides functionality for making deep copies of objects. We originally wanted to use code.google.com/p/rog-go/exp/deepcopy, but it's not working with a current version of Go (even after fixing compile issues, its unit tests don't pass). Hence, we created this deepcopy. It makes a deep copy by using json.Marshal and json.Unmarshal, so it's not very performant.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(dst interface{}, src interface{}) error

Make a deep copy from src into dst.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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