open-nomad/vendor/github.com/mitchellh/copystructure
Alex Dadgar 22e84d00ab Fix deep copy of driver config 2017-07-17 17:53:21 -07:00
..
LICENSE Using godeps to build 2016-02-12 10:02:16 -08:00
README.md Using godeps to build 2016-02-12 10:02:16 -08:00
copier_time.go Using godeps to build 2016-02-12 10:02:16 -08:00
copystructure.go Fix deep copy of driver config 2017-07-17 17:53:21 -07:00

README.md

copystructure

copystructure is a Go library for deep copying values in Go.

This allows you to copy Go values that may contain reference values such as maps, slices, or pointers, and copy their data as well instead of just their references.

Installation

Standard go get:

$ go get github.com/mitchellh/copystructure

Usage & Example

For usage and examples see the Godoc.

The Copy function has examples associated with it there.