Skip to content
New issue

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

Permit use of IgnoreFields with unexported fields #203

Merged
merged 1 commit into from May 20, 2020
Merged

Permit use of IgnoreFields with unexported fields #203

merged 1 commit into from May 20, 2020

Conversation

dsnet
Copy link
Collaborator

@dsnet dsnet commented May 20, 2020

Modify IgnoreFields to permit the specification of unexported fields.
To avoid a bug with reflect.Type.FieldByName, we disallow forwarding
on unexported fields. See https://golang.org/issue/4876 for details.

Fixes #196

Modify IgnoreFields to permit the specification of unexported fields.
To avoid a bug with reflect.Type.FieldByName, we disallow forwarding
on unexported fields. See https://golang.org/issue/4876 for details.

Fixes #196
@dsnet
Copy link
Collaborator Author

dsnet commented May 20, 2020

\cc @cybrcodr. Still unable to assign you as reviewer.

@cybrcodr
Copy link

Probably when I lost my membership to the Google org, it also removed my write access to this repo. Is there a separate access control on this repo?

@dsnet dsnet merged commit d08c604 into master May 20, 2020
@dsnet dsnet deleted the ignore branch May 20, 2020 20:25
dsnet added a commit that referenced this pull request Jun 17, 2020
The function now handles unexported fields since #203.
dsnet added a commit that referenced this pull request Jun 17, 2020
The function now handles unexported fields since #203.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow usage of AllowUnexported() and IgnoreFields()
2 participants