Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
deepcopier
✓ github.com/ulule/deepcopier
Deep copy a struct from source to destination.
package main
import (
"fmt"
"github.com/ulule/deepcopier"
)
type Source struct {
Name string
}
type Dest struct {
Name string
}
func main() {
src := Source{Name: "test"}
dst := Dest{}
deepcopier.Copy(&src).To(&dst)
fmt.Println(dst.Name)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.0.0-20200430083143-45decc6639b6latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.