Skip to content

Commit

Permalink
Changed default port in examples
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Rana <[email protected]>
  • Loading branch information
vishr committed May 10, 2015
1 parent c58ec74 commit 1b757d9
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func main() {
e.Get("/", hello)

// Start server
e.Run(":4444")
e.Run(":1323)
}
```
Expand Down
2 changes: 1 addition & 1 deletion examples/crud/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,5 @@ func main() {
e.Delete("/users/:id", deleteUser)

// Start server
e.Run(":4444")
e.Run(":1323")
}
2 changes: 1 addition & 1 deletion examples/hello/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ func main() {
e.Get("/", hello)

// Start server
e.Run(":4444")
e.Run(":1323")
}
2 changes: 1 addition & 1 deletion examples/web/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func main() {
})

// Start server
e.Run(":4444")
e.Run(":1323")
}

func init() {
Expand Down
6 changes: 3 additions & 3 deletions router.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,10 @@ func (r *router) Find(method, path string, ctx *Context) (h HandlerFunc, echo *E
cn = c
ctx.pvalues[n] = search
search = "" // End search
} else {
// Not found
return
continue
}
// Not found
return
}
}

Expand Down
2 changes: 1 addition & 1 deletion website/docs/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func main() {
return &echo.HTTPError{Code: http.StatusUnauthorized}
})
e.Get("/welcome", welcome)
e.Run(":4444")
e.Run(":1323")
}

func welcome(c *echo.Context) *echo.HTTPError {
Expand Down
6 changes: 3 additions & 3 deletions website/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func main() {
e.Get("/", hello)

// Start server
e.Run(":4444")
e.Run(":1323")
}
```

Expand All @@ -95,15 +95,15 @@ whenever server receives an HTTP request at `/`, hello handler is called.
In hello handler `c.String(http.StatusOK, "Hello, World!\n")` sends a text/plain
HTTP response to the client with 200 status code.

`e.Run(":4444")` Starts HTTP server at network address `:4444`.
`e.Run(":1323")` Starts HTTP server at network address `:1323`.

Now start the server using command

```sh
$ go run server.go
```

Browse to [http://localhost:4444](http://localhost:4444) and you should see
Browse to [http://localhost:1323](http://localhost:1323) and you should see
Hello, World! on the page.

### Next?
Expand Down

0 comments on commit 1b757d9

Please sign in to comment.