gin/binding
Sanjay Santhanam 978618d697 fix(binding): leave pointer fields nil for empty form values
BindQuery (and other form bindings) turned a present but empty value
like "age=" into a pointer to the zero value, so callers could not tell
it apart from "age=0". An absent key already left the pointer nil.

setByForm now reports an empty value with no default as unset for
numeric and boolean fields. Plain fields keep their zero value either
way, strings keep their existing behavior, and time.Duration keeps its
existing handling. This also covers form and URI bindings, which share
the same mapping code.

Fixes #3778.
2026-11-03 15:09:16 -08:00
..
2025-04-12 00:00:59 +08:00
2022-05-30 15:16:10 +08:00