1
0
mirror of https://github.com/labstack/echo.git synced 2025-12-01 22:51:17 +02:00

Added feature to map url params to a struct with the default binder (#1165)

* Added feature to map url params to a struct with the default binder

* Added test for mix of POST data and bound params

* Renamed variables

* Added error check

* Removed unneded fix
This commit is contained in:
kolaente
2019-06-21 15:12:55 +02:00
committed by Vishal Rana
parent 31361576e8
commit 858270f6f5
3 changed files with 63 additions and 2 deletions

View File

@@ -18,8 +18,8 @@ import (
type (
user struct {
ID int `json:"id" xml:"id" form:"id" query:"id"`
Name string `json:"name" xml:"name" form:"name" query:"name"`
ID int `json:"id" xml:"id" form:"id" query:"id" param:"id"`
Name string `json:"name" xml:"name" form:"name" query:"name" param:"name"`
}
)