-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
[GIN-001] - Add TOML bining for gin #3081
Conversation
@appleboy can you please help review |
I think you should use v2 of github.com/pelletier/go-toml. It's more performant |
The v2 version is still in beta and might still have numerous bugs at the moment |
Hugo uses v2, also i think it doesn't have critical bugs. |
The TOML parser has been updated to v2. Please review. Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
@appleboy fixed issues with |
Wait for @thinkerou approval. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, but please wait unit test ok, thanks!
32e4848
Resolved merge conflict and updated toml binding to use the type |
@Valentine-Mario sorry, please fix conflicts again, thanks! |
Resolved @thinkerou |
@thinkerou not sure why this test is failing, com planning about the TOML in the context being undefined |
Check https://github.com/gin-gonic/gin/blob/master/binding/binding_nomsgpack.go |
Codecov Report
@@ Coverage Diff @@
## master #3081 +/- ##
==========================================
- Coverage 98.77% 98.21% -0.56%
==========================================
Files 41 43 +2
Lines 3105 3141 +36
==========================================
+ Hits 3067 3085 +18
- Misses 26 44 +18
Partials 12 12
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@@ -0,0 +1,31 @@ | |||
package binding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add copyright info, thanks!
@@ -0,0 +1,32 @@ | |||
package render |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add copyright info, thanks!
master
This PR aims to add a TOML binding to the gin framework