render

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL