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:
parent
2483d2a140
commit
5cd194b6b0
6
echo.go
6
echo.go
@ -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
|
||||
}
|
||||
|
@ -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*
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user