We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://go.dev/play/p/xa2-zmGBrU9
Refer to the example above.
type Address struct { Street string City string } type Person struct { Name string Age int addr *Address }
If a struct has an unexported field and if it is a pointer then DeepCopy of this unexported pointer does not happen.
struct
DeepCopy
The text was updated successfully, but these errors were encountered:
jinzhu
No branches or pull requests
Reproducible Example
https://go.dev/play/p/xa2-zmGBrU9
Description
Refer to the example above.
If a
struct
has an unexported field and if it is a pointer thenDeepCopy
of this unexported pointer does not happen.The text was updated successfully, but these errors were encountered: