10000 GitHub - ajuga-deps/deepcopy
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ajuga-deps/deepcopy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deepCopy

Deep Copy is useful when one wants more than the pointer.

Functions are implemented as needed.

Currently Implemeted

Iface(iface interface{}) interface{}

InterfaceToSliceInts(v interface{}) []int
InterfaceToSliceStrings(v interface{}) []string

MapStringInterface(m map[string]interface{}) map[string]interface{}

SliceInts(i []int) []int
SliceStrings(s []string) []string

Notes:

__Iface__ will take almost any interface{} and return a deep copy of it as an interface{}. This handles structs too. Please check the `copyRecursive` function to see details of what is handled.
__MapStringInterface()__ supports interfaces of:
* []int
* []string
* map[string]interface{}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%
0