Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/felix-kaestner/copy
- Owner: felix-kaestner
- License: mit
- Created: 2023-02-04T13:15:52.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-10T00:50:22.000Z (5 months ago)
- Last Synced: 2024-06-20T16:33:21.041Z (5 months ago)
- Topics: copy, deep, go, golang
- Language: Go
- Homepage:
- Size: 40 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Copy
Create deep copies of values in Go.
## Usage
```go
package mainimport "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).