Skip to content

Commit

Permalink
Updated docs
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Rana <[email protected]>
  • Loading branch information
vishr committed Feb 19, 2017
1 parent 0b53f39 commit a098bcd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cookbook/middleware/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type (
func NewStats() *Stats {
return &Stats{
Uptime: time.Now(),
Statuses: make(map[string]int),
Statuses: map[string]int{},
}
}

Expand Down
2 changes: 1 addition & 1 deletion cookbook/subdomains/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type (

func main() {
// Hosts
hosts := make(map[string]*Host)
hosts := map[string]*Host{}

//-----
// API
Expand Down
2 changes: 1 addition & 1 deletion middleware/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion router.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
Expand Down
2 changes: 1 addition & 1 deletion website/content/cookbook/http2.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down

0 comments on commit a098bcd

Please sign in to comment.