1
0
mirror of https://github.com/coreos/ignition.git synced 2026-02-06 18:47:54 +01:00
Files
Benjamin Gilbert d31ebcb231 go.mod: add deep-copy package
There are various libraries available.  This one is popular, seems
relatively maintained, and tags proper releases, but is unfortunately
somewhat large.
2023-04-10 00:33:59 -04:00
..
2023-04-10 00:33:59 -04:00
2023-04-10 00:33:59 -04:00
2023-04-10 00:33:59 -04:00
2023-04-10 00:33:59 -04:00

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.