mirror of
https://github.com/labstack/echo.git
synced 2025-03-29 21:56:53 +02:00
20 lines
327 B
Go
20 lines
327 B
Go
package main
|
|
|
|
import (
|
|
"net/http"
|
|
"time"
|
|
|
|
"github.com/labstack/echo"
|
|
"github.com/tylerb/graceful"
|
|
)
|
|
|
|
func main() {
|
|
// Setup
|
|
e := echo.New()
|
|
e.Get("/", func(c *echo.Context) error {
|
|
return c.String(http.StatusOK, "Sue sews rose on slow joe crows nose")
|
|
})
|
|
|
|
graceful.ListenAndServe(e.Server(":1323"), 5*time.Second)
|
|
}
|