Skip to content

Latest commit

 

History

History
62 lines (48 loc) · 1.97 KB

README.md

File metadata and controls

62 lines (48 loc) · 1.97 KB

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.