https://github.com/mitchellh/copystructure
Go (golang) library for deep copying values in Go.
https://github.com/mitchellh/copystructure
Last synced: about 1 year ago
JSON representation
Go (golang) library for deep copying values in Go.
- Host: GitHub
- URL: https://github.com/mitchellh/copystructure
- Owner: mitchellh
- License: mit
- Archived: true
- Created: 2014-06-12T21:22:32.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2021-05-05T17:08:29.000Z (about 5 years ago)
- Last Synced: 2024-10-29T17:10:06.459Z (over 1 year ago)
- Language: Go
- Homepage: https://gist.github.com/mitchellh/90029601268e59a29e64e55bab1c5bdc
- Size: 101 KB
- Stars: 346
- Watchers: 9
- Forks: 30
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](http://godoc.org/github.com/mitchellh/copystructure).
The `Copy` function has examples associated with it there.