Text writes out a string as plain text.
(format string, args ...interface{})
| 4035 | |
| 4036 | // Text writes out a string as plain text. |
| 4037 | func (ctx *Context) Text(format string, args ...interface{}) (int, error) { |
| 4038 | ctx.ContentType(ContentTextHeaderValue) |
| 4039 | return ctx.Writef(format, args...) |
| 4040 | } |
| 4041 | |
| 4042 | // HTML writes out a string as text/html. |
| 4043 | func (ctx *Context) HTML(format string, args ...interface{}) (int, error) { |
no test coverage detected