MCPcopy
hub / github.com/gin-gonic/gin / BindUnmarshaler

Interface BindUnmarshaler

binding/form_mapping.go:183–186  ·  binding/form_mapping.go::BindUnmarshaler

BindUnmarshaler is the interface used to wrap the UnmarshalParam method.

Source from the content-addressed store, hash-verified

181
182// BindUnmarshaler is the interface used to wrap the UnmarshalParam method.
183type BindUnmarshaler interface {
184 // UnmarshalParam decodes and assigns a value from a form or query param.
185 UnmarshalParam(param string) error
186}
187
188// trySetCustom tries to set a custom type value
189// If the value implements the BindUnmarshaler interface, it will be used to set the value, we will return `true`

Callers 1

trySetCustomFunction · 0.65

Implementers 1

customUnmarshalParamTypebinding/form_mapping_test.go

Calls

no outgoing calls

Tested by

no test coverage detected