Skip to content

Commit

Permalink
update echo example (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonfy authored and unrolled committed Dec 10, 2018
1 parent b978641 commit 4c664cb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Expand Up @@ -373,7 +373,6 @@ import (
"net/http"

"github.com/labstack/echo"
"github.com/labstack/echo/engine/standard"
"github.com/unrolled/render" // or "gopkg.in/unrolled/render.v1"
)

Expand All @@ -390,13 +389,13 @@ func main() {

e := echo.New()

e.SetRenderer(r)
e.Renderer = r

e.GET("/", func(c echo.Context) error {
return c.Render(http.StatusOK, "TemplateName", "TemplateData")
})

e.Run(standard.New(":1323"))
e.Logger.Fatal(e.Start(":1323"))
}
~~~

Expand Down

0 comments on commit 4c664cb

Please sign in to comment.