-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
code
type MenuSrc struct {
Name string
Code *string
ID uint64
}
type MenuDst struct {
Name *string
Code *string
ID uint64
}
func TestCopy(t *testing.T) {
var name = "google"
var dst = &MenuDst{}
var src = &MenuSrc{
ID: 252271854679490561,
Name: name,
}
err := deepcopier.Copy(src).To(dst)
if err != nil {
t.Error(err)
}
}Metadata
Metadata
Assignees
Labels
No labels
