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:
@@ -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"`
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user