Need help with copystructure?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

mitchellh
235 Stars 28 Forks MIT License 83 Commits 3 Opened issues

Description

Go (golang) library for deep copying values in Go.

Services available

!
?

Need anything else?

Contributors list

# 617
Ruby
Go
Terrafo...
Vagrant
40 commits
# 1,909
Go
Terrafo...
HTML
cloud-m...
17 commits
# 61,765
Erlang
Go
Shell
fuzzyfi...
1 commit
# 31,629
Go
Kuberne...
packet
logrus
1 commit
# 33,717
Go
godoc
fec
golang
1 commit
# 3,915
Ruby
Terrafo...
Go
terrafo...
1 commit

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.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.