tyltr
34ce2104ca
optimize code and reduce code cyclomatic complexity ( #2737 )
...
* optimize code and reduce code cyclomatic complexity
* optimize if-condtion
Co-authored-by: thinkerou <thinkerou@gmail.com>
2021-06-03 20:12:51 +08:00
Ngalim Siregar
231ff00d1f
Refactor redirect request in gin.go ( #1970 )
...
* Refactor redirect request in gin.go
* Update http status code
2019-11-26 08:19:30 +08:00
Dmitry Kutakov
09a3650c97
binding: add support of multipart multi files ( #1878 ) ( #1949 )
...
* binding: add support of multipart multi files (#1878 )
* update readme: add multipart file binding
2019-06-18 19:49:10 +08:00
Dmitry Kutakov
2e915f4e50
refactor(form_mapping.go): mapping multipart request ( #1829 )
...
* refactor(form_mapping.go): mapping multipart request
* add checkers for a types to match with the setter interface
* form_mapping.go: rename method name on setter interface, add comments
* fix style of comments
2019-04-02 09:01:34 +08:00
Boyi Wu
c16bfa7949
update for supporting file binding ( #1264 )
...
update for supporting multipart form and file binding
example:
```
type PhoptUploadForm struct {
imgData *multipart.FileHeader `form:"img_data" binding:"required"`
ProjectID string `form:"project_id" binding:"required"`
Description string `form:"description binding:"required"`
}
```
ref: https://github.com/gin-gonic/gin/issues/1263
2019-03-18 10:16:34 +08:00
Dmitry Kutakov
b056a34bdc
fix errcheck warnings ( #1739 )
2019-01-18 09:32:53 +08:00
George Kirilenko
cdf26f994b
32 << 10 != 32 Mb ( #1094 )
2017-09-04 09:15:50 +08:00
Manu Mtz-Almeida
0494e1b66a
Removes unused underscore
2015-07-10 13:06:01 +02:00
Manu Mtz-Almeida
4194adce4c
Adds additional bindings for multipart and form
2015-07-03 04:20:00 +02:00
Manu Mtz-Almeida
0c9f086b74
Renames Validate() to validate()
2015-05-31 16:30:00 +02:00
Manu Mtz-Almeida
af8e099dfd
Fixes multipart integration
2015-05-26 16:31:05 +02:00
Manu Mtz-Almeida
f414648384
- More unit tests
...
- Improves HTML debug render
- InputHolder removed
- More debug logs
2015-05-05 15:06:38 +02:00