Create deep copies of values in Go.
package main
import "github.com/felix-kaestner/copy"
type Answer struct {
Value int
}
func main() {
meaningOfLife := &Answer{Value: 42}
quote := copy.Deep(meaningOfLife)
}
Install with the go get
command:
$ go get -u github.com/felix-kaestner/copy
All contributions in any form are welcome! 🙌🏻
Just use the Issue and Pull Request templates and I'll be happy to review your suggestions. 👍
Released under the MIT License.