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
|
## 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
|
||||||
|
3
echo.go
3
echo.go
@ -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 (
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"labstack.com/gommon/color"
|
"github.com/labstack/gommon/color"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user