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

parse headers to struct using reflection tags #1

Merged
merged 7 commits into from
Jan 22, 2021

Conversation

bnfinet
Copy link
Contributor

@bnfinet bnfinet commented Jan 14, 2021

adds decoder.go

@coveralls
Copy link

Coverage Status

Coverage decreased (-31.5%) to 63.536% when pulling 2d9e125 on bnfinet:master into 61f2392 on mozillazg:master.

@mozillazg mozillazg changed the base branch from master to develop January 17, 2021 00:30
@mozillazg
Copy link
Owner

Thanks for your contributor. Could you have time to add some tests for this feature?

decode.go Outdated Show resolved Hide resolved
@bnfinet
Copy link
Contributor Author

bnfinet commented Jan 18, 2021

@mozillazg I've added a test derived from real world usage of Google Calendar's header based notification system. Thanks for reviewing the PR and considering its inclusion.

.bumpversion.cfg Outdated Show resolved Hide resolved
decode.go Outdated Show resolved Hide resolved
encode.go Outdated Show resolved Hide resolved
decode_test.go Show resolved Hide resolved
@mozillazg mozillazg self-requested a review January 22, 2021 12:19
Copy link
Owner

@mozillazg mozillazg left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@mozillazg mozillazg merged commit b32520d into mozillazg:develop Jan 22, 2021
@bnfinet
Copy link
Contributor Author

bnfinet commented Jan 22, 2021

@mozillazg thanks much!

I'm working towards publishing the Google Calendar library. Do let me know if there's anything that I can do to get develop merged to master.

@mozillazg
Copy link
Owner

@bnfinet Just want to let you know, the new version of go-httpheader has been released today.

BTW, I have updated some codes you can review these changes via v0.2.1...v0.3.0 .

@bnfinet
Copy link
Contributor Author

bnfinet commented Jan 24, 2021

@mozillazg thank you!

That's excellent test coverage.

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.

3 participants