예제 #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)
}