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

gen/enum: Implement encoding.TextUnmarshaler #309

Merged
merged 2 commits into from
May 9, 2017
Merged

Conversation

abhinav
Copy link
Contributor

@abhinav abhinav commented May 8, 2017

This changes generated code for enums to implement the
encoding.TextUnmarshaler interface. This exposes a simple API to users
for reading enums by name in addition to integrating better with
other encoding libraries.

(This was pulled from #308. Thanks @recht!)

This changes generated code for enums to implement the
encoding.TextUnmarshaler interface. This exposes a simple API to users
for reading enums by name in addition to integrating better with
other encoding libraries.
@abhinav abhinav requested review from prashantv and bombela May 8, 2017 20:16
CHANGELOG.md Outdated
@@ -6,6 +6,7 @@ v1.3.0 (unreleased)

- Plugins: Added support for overriding the communication channels used by
plugins.
- Enums now implement `encoding.TextUnmarshaler`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe a small note for what this means?

@recht
Copy link
Contributor

recht commented May 9, 2017

Looks good to me, thanks 👍

@abhinav abhinav merged commit 05a0418 into dev May 9, 2017
@abhinav abhinav deleted the enum-text-unmarshaler branch May 9, 2017 15:47
abhinav pushed a commit that referenced this pull request May 9, 2017
This changes generated code for enums to implement the
encoding.TextUnmarshaler interface. This exposes a simple API to users
for reading enums by name in addition to integrating better with
other encoding libraries.

(This was pulled from #308. Thanks @recht!)
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.

4 participants