Documentation
¶
Index ¶
- func Data(c *webing.RequestContext, data []byte, args ...interface{})
- func Error(c *webing.RequestContext, msg string)
- func File(ctx *webing.RequestContext, filepath string)
- func Html(ctx *webing.RequestContext, template string, args ...interface{})
- func Json(ctx *webing.RequestContext, args ...interface{})
- func Redirect(ctx *webing.RequestContext, url string)
- func Stream(ctx *webing.RequestContext, step func(w io.Writer) bool)
- func String(ctx *webing.RequestContext, args ...interface{})
- func Xml(ctx *webing.RequestContext, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Data ¶
func Data(c *webing.RequestContext, data []byte, args ...interface{})
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * render data * args格式: contentType | statusCode | contentType,statusCode | * contentType,isAbort | contentType,statusCode,isAbort * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
func Error ¶
func Error(c *webing.RequestContext, msg string)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * render error * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
func File ¶
func File(ctx *webing.RequestContext, filepath string)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * render file * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
func Html ¶
func Html(ctx *webing.RequestContext, template string, args ...interface{})
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * render html * args格式: data | statusCode | data,statusCode | data,isAbort | data,statusCode,isAbort * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
func Json ¶
func Json(ctx *webing.RequestContext, args ...interface{})
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * render json * args格式: data | data,statusCode | data,isAbort | data,statusCode,isAbort * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
func Redirect ¶
func Redirect(ctx *webing.RequestContext, url string)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * render redirect * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
func Stream ¶
func Stream(ctx *webing.RequestContext, step func(w io.Writer) bool)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * render stream * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
func String ¶
func String(ctx *webing.RequestContext, args ...interface{})
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * render string * args格式: string | []byte | data,statusCode | data,isAbort | data,statusCode,isAbort * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
func Xml ¶
func Xml(ctx *webing.RequestContext, args ...interface{})
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * render xml * args格式: data | data,statusCode | data,isAbort | data,statusCode,isAbort * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Types ¶
This section is empty.