mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-23 18:22:23 +08:00
Remove redundant space between sentences
This commit is contained in:
parent
1cecbd367c
commit
4a60eed947
@ -29,7 +29,7 @@ type Binding interface {
|
|||||||
Bind(*http.Request, interface{}) error
|
Bind(*http.Request, interface{}) error
|
||||||
}
|
}
|
||||||
|
|
||||||
// BindingBody adds BindBody method to Binding. BindBody is similar with Bind,
|
// BindingBody adds BindBody method to Binding. BindBody is similar with Bind,
|
||||||
// but it reads the body from supplied bytes instead of req.Body.
|
// but it reads the body from supplied bytes instead of req.Body.
|
||||||
type BindingBody interface {
|
type BindingBody interface {
|
||||||
Binding
|
Binding
|
||||||
|
@ -512,7 +512,7 @@ func (c *Context) ShouldBindWith(obj interface{}, b binding.Binding) error {
|
|||||||
// ShouldBindBodyWith is similar with ShouldBindWith, but it stores the request
|
// ShouldBindBodyWith is similar with ShouldBindWith, but it stores the request
|
||||||
// body into the context, and reuse when it is called again.
|
// body into the context, and reuse when it is called again.
|
||||||
//
|
//
|
||||||
// NOTE: This method reads the body before binding. So you should use
|
// NOTE: This method reads the body before binding. So you should use
|
||||||
// ShouldBindWith for better performance if you need to call only once.
|
// ShouldBindWith for better performance if you need to call only once.
|
||||||
func (c *Context) ShouldBindBodyWith(
|
func (c *Context) ShouldBindBodyWith(
|
||||||
obj interface{}, bb binding.BindingBody,
|
obj interface{}, bb binding.BindingBody,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user