-
Notifications
You must be signed in to change notification settings - Fork 18k
encoding/gob: ignore func and chan values during encoding #6071
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
Labels
Milestone
Comments
Perhaps gob should just be more forgiving. I thought there was a bug filed about this but there's only one about nested unmarshalable structs, which is a separate issue. I propose that gob treat chan and func fields exactly as it now treats unexported fields. If there is no custom encoder for that field, it is simply ignored. It's an easy, backwards-compatible change that will take care of a large subset of the compatibility issue. |
This issue was closed by revision 1fba73d. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: