Skip to content

bygo/deep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Copy

import "github.com/bygo/deep"

var usersCopy = deep.Copy(users)

CopyIgnore

Some structs will not be deconstructed and their fields copied, but the struct will be copied.

import "github.com/bygo/deep"

var usersCopy = deep.CopyIgnore(users, User{}, Article{})