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
272 Stars 28 Forks MIT License 85 Commits 2 Opened issues

Description

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

Services available

!
?

Need anything else?

Contributors list

# 599
Ruby
Go
Terrafo...
Vagrant
40 commits
# 1,787
Go
Terrafo...
HTML
cloud-m...
17 commits
# 63,037
Erlang
Go
Shell
fuzzyfi...
1 commit
# 34,639
Go
Azure
golang
k8s
1 commit
# 34,423
Go
compila...
fec
golang
1 commit
# 3,981
Ruby
Terrafo...
Go
terrafo...
1 commit
# 20,173
Terrafo...
Go
Vim
git-ser...
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.