Documentation
¶
Index ¶
- Variables
- func AutoOutput(outputFunc func(string, echo.Context) error, skipper ...echo.Skipper) echo.MiddlewareFunc
- func Del(key string)
- func Middleware(d echo.Renderer) echo.MiddlewareFunc
- func New(key string, tmplDir string, args ...logger.Logger) Driver
- func Output(format string, c echo.Context) error
- func OutputError(err error, format string, c echo.Context) error
- func Reg(key string, val func(string) Driver)
- func SetFuncs(c echo.Context, v *echo.Data)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultDataKey = `data` DefaultTmplKey = `tmpl` DefaultTmplName = `index` DefaultErrorTmpl = `error` JSONPCallbackName = `callback` DefaultErrorFunc = OutputError DefaultOutputFunc = Output )
Functions ¶
func AutoOutput ¶
func AutoOutput(outputFunc func(string, echo.Context) error, skipper ...echo.Skipper) echo.MiddlewareFunc
AutoOutput Outputs the specified format
func OutputError ¶
OutputError Outputs the specified format
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.