1
0
mirror of https://github.com/labstack/echo.git synced 2025-03-21 21:27:04 +02:00

Updated docs

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2017-02-19 13:02:10 -08:00
parent 0b53f397ad
commit a098bcd3b0
5 changed files with 5 additions and 5 deletions

View File

@ -21,7 +21,7 @@ type (
func NewStats() *Stats {
return &Stats{
Uptime: time.Now(),
Statuses: make(map[string]int),
Statuses: map[string]int{},
}
}

View File

@ -15,7 +15,7 @@ type (
func main() {
// Hosts
hosts := make(map[string]*Host)
hosts := map[string]*Host{}
//-----
// API

View File

@ -9,6 +9,6 @@ type (
)
// DefaultSkipper returns false which processes the middleware.
func DefaultSkipper(c echo.Context) bool {
func DefaultSkipper(echo.Context) bool {
return false
}

View File

@ -47,7 +47,7 @@ func NewRouter(e *Echo) *Router {
tree: &node{
methodHandler: new(methodHandler),
},
routes: make(map[string]Route),
routes: map[string]Route{},
echo: e,
}
}

View File

@ -31,7 +31,7 @@ This will generate `cert.pem` and `key.pem` files.
> For demo purpose, we are using a self-signed certificate. Ideally you should obtain
a certificate from [CA](https://en.wikipedia.org/wiki/Certificate_authority).
### Configure a server with `engine.Config`
## Server
`server.go`