mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-14 20:22:20 +08:00
brackets
This commit is contained in:
parent
8419489349
commit
7aa677eb51
2
gin.go
2
gin.go
@ -330,7 +330,7 @@ func (c *Context) Fail(code int, err error) {
|
|||||||
// Dump is the same as Fail except instead of an error
|
// Dump is the same as Fail except instead of an error
|
||||||
// you are able to dump out any data that you may need to
|
// you are able to dump out any data that you may need to
|
||||||
// trouble shoot for your application.
|
// trouble shoot for your application.
|
||||||
func (c *Context) Dump(code int, dump interface) {
|
func (c *Context) Dump(code int, dump interface{}) {
|
||||||
c.Writer.Write([]byte(fmt.Sprint("%v", dump)))
|
c.Writer.Write([]byte(fmt.Sprint("%v", dump)))
|
||||||
c.Abort(code)
|
c.Abort(code)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user