package main
import (
"github.com/labstack/echo/v4"
)
func main() {
// Echo instance
e := echo.New()
// Routes
e.GET("/", hello)
e.GET("/ping", func(c echo.Context) error {
return c.String(200,"pong")
})
// Start server
e.Start(":1323")
}
// Handler
func hello(c echo.Context) error {
return c.String(200, "Hello, World!")
}