1
0
mirror of https://github.com/labstack/echo.git synced 2024-11-28 08:38:39 +02:00

Set RenderFunc option

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2015-04-07 17:34:00 -07:00
parent 332752efe6
commit 12bd049b0d

View File

@ -115,6 +115,11 @@ func (e *Echo) NotFoundHandler(h Handler) {
e.notFoundHandler = wrapH(h)
}
// RenderFunc sets a custom RenderFunc.
func (e *Echo) RenderFunc(r RenderFunc) {
e.renderFunc = r
}
// Use adds handler to the middleware chain.
func (e *Echo) Use(m ...Middleware) {
for _, h := range m {