Skip to content

felix-kaestner/copy

Repository files navigation

Copy

Create deep copies of values in Go.

Issues Stars License Stars Issues Twitter

Usage

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 and Pull Request templates and I'll be happy to review your suggestions. 👍


Released under the MIT License.

About

Create deep copies of values in Go.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project