コード例 #1
0
ファイル: context.go プロジェクト: jingweno/jqplay
// String writes the given string into the response body.
func (c *Context) String(code int, format string, values ...interface{}) {
	c.Status(code)
	render.WriteString(c.Writer, format, values)
}
コード例 #2
0
ファイル: context.go プロジェクト: eghobo/kubedash
// String writes the given string into the response body.
func (c *Context) String(code int, format string, values ...interface{}) {
	c.writermem.WriteHeader(code)
	render.WriteString(c.Writer, format, values)
}