copy icon indicating copy to clipboard operation
copy copied to clipboard

Package for fast copying structs of different types

Results 4 copy issues
Sort by recently updated
recently updated
newest added

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...