TOML serializes the given struct as TOML into the response body.
(code int, obj any)
| 1231 | |
| 1232 | // TOML serializes the given struct as TOML into the response body. |
| 1233 | func (c *Context) TOML(code int, obj any) { |
| 1234 | c.Render(code, render.TOML{Data: obj}) |
| 1235 | } |
| 1236 | |
| 1237 | // ProtoBuf serializes the given struct as ProtoBuf into the response body. |
| 1238 | func (c *Context) ProtoBuf(code int, obj any) { |