TestMappingCustomUnmarshalTextHexDefault() — gin Function Reference
Architecture documentation for the TestMappingCustomUnmarshalTextHexDefault() function in form_mapping_test.go from the gin codebase.
Entity Profile
Relationship Graph
Source Code
binding/form_mapping_test.go lines 774–781
func TestMappingCustomUnmarshalTextHexDefault(t *testing.T) {
var s struct {
Field customUnmarshalTextHex `form:"field,default=f5,parser=encoding.TextUnmarshaler"`
}
err := mappingByPtr(&s, formSource{"field1": {}}, "form")
require.NoError(t, err)
assert.EqualValues(t, 0xf5, s.Field)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free