1
0
mirror of https://github.com/labstack/echo.git synced 2024-11-24 08:22:21 +02:00

Merge pull request #452 from andreas-bergstrom/patch-1

Correct hello world example
This commit is contained in:
Vishal Rana 2016-04-05 06:44:00 -07:00
commit ccdf76c2c2

View File

@ -53,15 +53,16 @@ package main
import (
"net/http"
"github.com/labstack/echo"
"github.com/labstack/echo/engine/standard"
)
func main() {
e := echo.New()
e.Get("/hello", func(c echo.Context) error {
e.Get("/", func(c echo.Context) error {
return c.String(http.StatusOK, "Hello, World!")
})
e.Run(standard.New(":1323"))
}
```