-
Notifications
You must be signed in to change notification settings - Fork 8.5k
binding: add BindPlain function #2037
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
Conversation
guonaihong
commented
Sep 3, 2019
```go package main import ( "github.com/gin-gonic/gin" ) func main() { router := gin.Default() router.POST("/", func(c *gin.Context) { var s string c.BindPlain(&s) c.String(200, s) }) router.Run() } // client // curl -d "test string" 127.0.0.1:8080 // output // test string ```
Codecov Report
@@ Coverage Diff @@
## master #2037 +/- ##
==========================================
+ Coverage 98.69% 98.71% +0.01%
==========================================
Files 40 41 +1
Lines 2225 2251 +26
==========================================
+ Hits 2196 2222 +26
Misses 16 16
Partials 13 13
Continue to review full report at Codecov.
|
Can the pr review it quickly? For example, using gin to develop services such as log-agent |
.gitignore
Outdated
@@ -1,3 +1,4 @@ | |||
*~ |
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.
revert this
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.
ok
move to 1.7 milestone |
Please fix the conflicts and move to 1.11 |
Okay, I'll set aside time on Saturday to fix it. |
I might only have time to get this done on Monday evening |
Please help to rebase the latest master branch. Thanks. |
ok |
@guonaihong Can you close this PR and create a new PR? Since there is no CI/CD (testing and lint) checking in this PR. |
ok, I'll close this PR for now and open a new one on Monday. |