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

Updated docs

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2015-12-03 14:14:14 -08:00
parent 2483d2a140
commit 5cd194b6b0
2 changed files with 6 additions and 6 deletions

View File

@ -247,7 +247,7 @@ func (e *Echo) Logger() *log.Logger {
return e.logger
}
// HTTP2 enables/disables HTTP2 support.
// HTTP2 enable/disable HTTP2 support.
func (e *Echo) HTTP2(on bool) {
e.http2 = on
}
@ -272,7 +272,7 @@ func (e *Echo) SetRenderer(r Renderer) {
e.renderer = r
}
// SetDebug enables/disables debug mode.
// SetDebug enable/disable debug mode.
func (e *Echo) SetDebug(on bool) {
e.debug = on
}
@ -282,7 +282,7 @@ func (e *Echo) Debug() bool {
return e.debug
}
// AutoIndex enables/disables automatically creating an index page for the directory.
// AutoIndex enable/disable automatically creating an index page for the directory.
func (e *Echo) AutoIndex(on bool) {
e.autoIndex = on
}

View File

@ -23,7 +23,7 @@ and message `HTTPError.Message`.
`Echo#SetDebug(on bool)`
Enables/disables debug mode.
Enable/disable debug mode.
### Log prefix
@ -47,13 +47,13 @@ SetLogLevel sets the log level for the logger. Default value is `log.INFO`.
`echo#HTTP(on bool)`
HTTP2 enables/disables HTTP2 support.
Enable/disable HTTP2 support.
### Auto index
`Echo#AutoIndex(on bool)`
AutoIndex enables/disables automatically creating an index page for the directory.
Enable/disable automatically creating an index page for the directory.
*Example*