BSON serializes the given struct as BSON into the response body.
(code int, obj any)
| 1241 | |
| 1242 | // BSON serializes the given struct as BSON into the response body. |
| 1243 | func (c *Context) BSON(code int, obj any) { |
| 1244 | c.Render(code, render.BSON{Data: obj}) |
| 1245 | } |
| 1246 | |
| 1247 | // String writes the given string into the response body. |
| 1248 | func (c *Context) String(code int, format string, values ...any) { |