ProtoBuf serializes the given struct as ProtoBuf into the response body.
(code int, obj any)
| 1236 | |
| 1237 | // ProtoBuf serializes the given struct as ProtoBuf into the response body. |
| 1238 | func (c *Context) ProtoBuf(code int, obj any) { |
| 1239 | c.Render(code, render.ProtoBuf{Data: obj}) |
| 1240 | } |
| 1241 | |
| 1242 | // BSON serializes the given struct as BSON into the response body. |
| 1243 | func (c *Context) BSON(code int, obj any) { |