MCPcopy Create free account
hub / github.com/kataras/iris / Text

Method Text

context/context.go:4037–4040  ·  view source on GitHub ↗

Text writes out a string as plain text.

(format string, args ...interface{})

Source from the content-addressed store, hash-verified

4035
4036// Text writes out a string as plain text.
4037func (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.
4043func (ctx *Context) HTML(format string, args ...interface{}) (int, error) {

Callers 1

mainFunction · 0.45

Calls 2

ContentTypeMethod · 0.95
WritefMethod · 0.95

Tested by

no test coverage detected