Go (golang) library for deep copying values in Go.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.travis.yml
LICENSE
README.md
copier_time.go Allow specifying custom functions for copying specific types Apr 25, 2015
copier_time_test.go Allow specifying custom functions for copying specific types Apr 25, 2015
copystructure.go
copystructure_examples_test.go
copystructure_test.go
go.mod
go.sum

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.