Registry / utility / mitchellh-copystructure

mitchellh-copystructure

JSON →
library1.2.0gogounverified

Deep copies Go data structures, handling pointers, maps, slices, and structs.

go get github.com/mitchellh/copystructure
INSTALL
IMPORT
SIG · MITCHELLH-COPYSTRU
M
mitchellh-copystructure
utilitygov1.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

copystructure
✓ github.com/mitchellh/copystructure

Deep copies a map.

package main import ( "fmt" "github.com/mitchellh/copystructure" ) func main() { original := map[string]int{"a": 1} copy, _ := copystructure.Copy(original) fmt.Println(copy) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
mitchellh-copystructure — go get mitchellh-copystructure · libregistry