1
0
mirror of https://github.com/labstack/echo.git synced 2024-11-28 08:38:39 +02:00

Merge pull request #478 from roth1002/master

Fixed typo in README.md since echo.Context has no field or method For…
This commit is contained in:
Vishal Rana 2016-04-20 07:06:59 -07:00
commit 2918b44698

View File

@ -119,7 +119,7 @@ email | joe@labstack.com
func save(c echo.Context) error { func save(c echo.Context) error {
// Get name and email // Get name and email
name := c.FormValue("name") name := c.FormValue("name")
email := c.FormParam("email") email := c.FormValue("email")
} }
``` ```
@ -137,7 +137,7 @@ avatar | avatar
func save(c echo.Context) error { func save(c echo.Context) error {
// Get name and email // Get name and email
name := c.FormValue("name") name := c.FormValue("name")
email := c.FormParam("email") email := c.FormValue("email")
// Get avatar // Get avatar
avatar, err := c.FormFile("avatar") avatar, err := c.FormFile("avatar")
if err != nil { if err != nil {