1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-24 20:14:31 +02:00

Fixed broken build

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2015-04-18 22:00:44 -07:00
parent 141b4302ae
commit 566ed78c1e
4 changed files with 6 additions and 5 deletions

View File

@ -68,6 +68,7 @@ BenchmarkZeus_GithubAll 2000 752907 ns/op 300688 B/op 2648 all
## Examples ## Examples
[labstack/echo/example](https://github.com/labstack/echo/tree/master/examples) [labstack/echo/example](https://github.com/labstack/echo/tree/master/examples)
> Hello, World!
```go ```go
package main package main

View File

@ -9,9 +9,8 @@ import (
"strings" "strings"
"sync" "sync"
"github.com/labstack/gommon/color"
"github.com/mattn/go-colorable" "github.com/mattn/go-colorable"
"labstack.com/gommon/color"
) )
type ( type (

View File

@ -4,7 +4,7 @@ import (
"log" "log"
"net/http" "net/http"
"labstack.com/gommon/color" "github.com/labstack/gommon/color"
) )
type ( type (

View File

@ -31,7 +31,7 @@ Echo is a fast HTTP router (zero memory allocation) and micro web framework in G
## Examples ## Examples
#### Hello, World! > Hello, World!
Create ```server.go``` with the following content: Create ```server.go``` with the following content:
```go ```go
@ -65,7 +65,8 @@ func main() {
```go run server.go``` & browse to ```http://localhost:8080``` ```go run server.go``` & browse to ```http://localhost:8080```
#### CRUD - Create, read, update and delete. > CRUD - Create, read, update and delete.
- Create user - Create user
```curl -X POST -H "Content-Type: application/json" -d '{"name":"Joe"}' http://localhost:4444/users``` ```curl -X POST -H "Content-Type: application/json" -d '{"name":"Joe"}' http://localhost:4444/users```
- Get user - Get user