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:
parent
332752efe6
commit
12bd049b0d
5
echo.go
5
echo.go
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user