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

Allow no badge count to be sent #23

Closed
wants to merge 2 commits into from
Closed

Allow no badge count to be sent #23

wants to merge 2 commits into from

Conversation

MrTravisB
Copy link
Contributor

Makes badge count a pointer to int which will allow for respecting of "omitempty" and no longer requires the zero hack. Now to get a badge count of zero you can explicitly set it to zero. Resolve #22

@draaglom
Copy link
Collaborator

Looks good to me. @anachronistic?

One thing that gives me pause is compatibility -- we need to work out a strategy for this and future breaking changes. One option is http://gopkg.in; another is to provide a gofmt script to automatically fix user code (see https://github.com/peterbourgon/g2s/blob/master/fix.bash)

@MrTravisB
Copy link
Contributor Author

Going to abandon this and just maintain my own fork.

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.

Don't send badge value
2 participants