echo-tutorial
Official Document
Practiced Feature Overview
- Optimized HTTP router which smartly prioritize routes
- coming soon ...
Quick Start
Installation
$ go get -u github.com/labstack/echo/...
Create server.go
package main
import (
"net/http"
"github.com/labstack/echo"
)
func main() {
e := echo.New()
e.GET("/", func(c echo.Context) error {
return c.String(http.StatusOK, "Hello, World!")
})
e.Logger.Fatal(e.Start(":1323"))
}
Start server
$ go run server.go
Browse to http://localhost:1323 and you should see Hello, World! on the page.