Open debasish-mihup opened 3 years ago
The fields of the struct must be exported in order to copy them.
This should be written in big letters in the readme 😂, it makes this library less useful as a usual use case is to copy structs from other packages with unexported fields.
https://play.golang.org/p/IYQlesIxpD1
Trying to deep copy a slice of struct but it is not working as all the copies are pointing to original and thus changing the copy affects the original