1
0
mirror of https://github.com/labstack/echo.git synced 2025-07-11 01:20:18 +02:00
Files
echo/examples/grace/server.go

21 lines
343 B
Go

package main
import (
"net/http"
"github.com/facebookgo/grace/gracehttp"
"github.com/labstack/echo"
)
func main() {
// Setup
e := echo.New()
e.Get("/", func(c *echo.Context) error {
c.String(http.StatusOK, "Six sick bricks tick")
return nil
})
// Use github.com/facebookgo/grace/gracehttp
gracehttp.Serve(e.Server(":1323"))
}