First of all this removes the need for a network connection, second renovate can update the version as it is tracked in go.mod. However the real important part is that the binary downloads are broken[1]. For some reason the swagger created with them does not include all the type information for the examples. However when building from source the same thing works fine. [1] https://github.com/go-swagger/go-swagger/issues/2842 Signed-off-by: Paul Holzinger <pholzing@redhat.com> |
||
|---|---|---|
| .. | ||
| LICENSE | ||
| README.md | ||
| copier_time.go | ||
| copystructure.go | ||
README.md
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.