mirror of
https://github.com/labstack/echo.git
synced 2025-04-25 12:24:55 +02:00
21 lines
343 B
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"))
|
|
}
|