Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/felix-kaestner/copy

Create deep copies of values in Go.
https://github.com/felix-kaestner/copy

copy deep go golang

Last synced: about 5 hours ago
JSON representation

Create deep copies of values in Go.

Awesome Lists containing this project

README

        

# Copy


Create deep copies of values in Go.




Issues


Stars


License


Stars


Issues





Twitter

## Usage

```go
package main

import "github.com/felix-kaestner/copy"

type Answer struct {
Value int
}

func main() {
meaningOfLife := &Answer{Value: 42}

quote := copy.Deep(meaningOfLife)
}
```

## Installation

Install with the `go get` command:

```
$ go get -u github.com/felix-kaestner/copy
```

## Contribute

All contributions in any form are welcome! 🙌🏻
Just use the [Issue](.github/ISSUE_TEMPLATE) and [Pull Request](.github/PULL_REQUEST_TEMPLATE) templates and I'll be happy to review your suggestions. 👍

---

Released under the [MIT License](LICENSE).