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:
parent
0b53f397ad
commit
a098bcd3b0
@ -21,7 +21,7 @@ type (
|
||||
func NewStats() *Stats {
|
||||
return &Stats{
|
||||
Uptime: time.Now(),
|
||||
Statuses: make(map[string]int),
|
||||
Statuses: map[string]int{},
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -15,7 +15,7 @@ type (
|
||||
|
||||
func main() {
|
||||
// Hosts
|
||||
hosts := make(map[string]*Host)
|
||||
hosts := map[string]*Host{}
|
||||
|
||||
//-----
|
||||
// API
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
@ -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`
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user