gin icon indicating copy to clipboard operation
gin copied to clipboard

Add support of time pointer fields in form binding

Open lokhman opened this issue 6 years ago • 3 comments

This will cover the following scenarios:

type input struct {
	Field *time.Time `form:"field" time_format:"2006-01-02" time_utc:"1"`
}

lokhman avatar Aug 14 '18 13:08 lokhman

Codecov Report

Merging #1486 into master will decrease coverage by 0.04%. The diff coverage is 88.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1486      +/-   ##
==========================================
- Coverage   98.49%   98.44%   -0.05%     
==========================================
  Files          41       41              
  Lines        2062     2062              
==========================================
- Hits         2031     2030       -1     
- Misses         19       20       +1     
  Partials       12       12
Impacted Files Coverage Δ
binding/form_mapping.go 99.3% <88.88%> (-0.7%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update e207a3c...9c168e5. Read the comment docs.

codecov[bot] avatar Aug 14 '18 13:08 codecov[bot]

@lokhman conflicts. Please help to fix.

appleboy avatar Aug 22 '18 02:08 appleboy

@appleboy resolved for now. Please check.

lokhman avatar Aug 22 '18 08:08 lokhman