Here is my code
ABC:= model.ABC{}
if err := c.Bind(&ABC); err != nil {}
c is echo.Context
Here is my model:
type ABC struct {
Name string `json:"name"`
Age int `json:"int"`
}
I want the Age optional. So when I do not pass it in the body request. It still works.