2 Commits

Author SHA1 Message Date
guonaihong
e7d66c6d17 fix word misspelling 2019-09-04 09:00:59 +08:00
guonaihong
53df00ffe4 binding: add BindPlain function
```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
```
2019-09-03 22:50:13 +08:00