copy
copy copied to clipboard
Package for fast copying structs of different types
If you have the following structs: ```go type User struct { Name string Email string Company *Company } type Company struct { Name string Domain string } ``` and do...
It's bad practice to cause panics in a library. Recover inside your package and return an error If you must use panics.
Is there a way to copy only the not null fields? Example: ```go package main import ( "fmt" "github.com/gotidy/copy" ) type Player struct { Firstname string Username *string UserDetail *UserDetail...