...
1
2
3
4
5 package gin
6
7 import (
8 "log"
9
10 "github.com/gin-gonic/gin/binding"
11 )
12
13
14
15 func (c *Context) BindWith(obj any, b binding.Binding) error {
16 log.Println(`BindWith(\"any, binding.Binding\") error is going to
17 be deprecated, please check issue #662 and either use MustBindWith() if you
18 want HTTP 400 to be automatically returned if any error occur, or use
19 ShouldBindWith() if you need to manage the error.`)
20 return c.MustBindWith(obj, b)
21 }
22
View as plain text