3
0
mirror of https://github.com/gin-gonic/gin.git synced 2025-04-06 03:57:46 +08:00

1 Commits

Author SHA1 Message Date
Dmitry Kutakov
0d50ce8597 refactor(form_mapping.go): mapping ptr, struct and map ()
* refactor(form_mapping.go): mapping ptr, struct and map

* fix  correct work with ptr - not create value if field is not set
* avoid allocations on strings.Split() - change to strings.Index()
* fix  tag value "-" is mean ignoring field
* struct fields mapped like json.Unmarshal
* map fields mapped like json.Unmarshal

* fix after @thinkerou review
2019-03-03 14:39:43 +08:00