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:
parent
141b4302ae
commit
566ed78c1e
@ -68,6 +68,7 @@ BenchmarkZeus_GithubAll 2000 752907 ns/op 300688 B/op 2648 all
|
||||
## Examples
|
||||
|
||||
[labstack/echo/example](https://github.com/labstack/echo/tree/master/examples)
|
||||
> Hello, World!
|
||||
|
||||
```go
|
||||
package main
|
||||
|
3
echo.go
3
echo.go
@ -9,9 +9,8 @@ import (
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/labstack/gommon/color"
|
||||
"github.com/mattn/go-colorable"
|
||||
|
||||
"labstack.com/gommon/color"
|
||||
)
|
||||
|
||||
type (
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"log"
|
||||
"net/http"
|
||||
|
||||
"labstack.com/gommon/color"
|
||||
"github.com/labstack/gommon/color"
|
||||
)
|
||||
|
||||
type (
|
||||
|
@ -31,7 +31,7 @@ Echo is a fast HTTP router (zero memory allocation) and micro web framework in G
|
||||
|
||||
## Examples
|
||||
|
||||
#### Hello, World!
|
||||
> Hello, World!
|
||||
|
||||
Create ```server.go``` with the following content:
|
||||
```go
|
||||
@ -65,7 +65,8 @@ func main() {
|
||||
|
||||
```go run server.go``` & browse to ```http://localhost:8080```
|
||||
|
||||
#### CRUD - Create, read, update and delete.
|
||||
> CRUD - Create, read, update and delete.
|
||||
|
||||
- Create user
|
||||
```curl -X POST -H "Content-Type: application/json" -d '{"name":"Joe"}' http://localhost:4444/users```
|
||||
- Get user
|
||||
|
Loading…
Reference in New Issue
Block a user