mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-14 12:12:12 +08:00
stop execution in example
This commit is contained in:
parent
c1d06e3d08
commit
9eaba78ab6
@ -885,6 +885,7 @@ func main() {
|
||||
|
||||
if err := c.ShouldBindHeader(&h); err != nil {
|
||||
c.JSON(http.StatusOK, err)
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Printf("%#v\n", h)
|
||||
|
Loading…
x
Reference in New Issue
Block a user