diff --git a/cookbook/hello-world/server.go b/cookbook/hello-world/server.go index 06e0718b..320b4083 100644 --- a/cookbook/hello-world/server.go +++ b/cookbook/hello-world/server.go @@ -17,7 +17,7 @@ func main() { // Route => handler e.GET("/", func(c echo.Context) error { - return c.String(http.StatusOK, "Hello, World!\n") + return c.HTML(http.StatusOK, "Hello, World!\n") }) // Start server