TestMappingCustomSliceUnmarshalTextForm() — gin Function Reference
Architecture documentation for the TestMappingCustomSliceUnmarshalTextForm() function in form_mapping_test.go from the gin codebase.
Entity Profile
Relationship Graph
Source Code
binding/form_mapping_test.go lines 876–885
func TestMappingCustomSliceUnmarshalTextForm(t *testing.T) {
var s struct {
FileData customPathUnmarshalText `form:"path,parser=encoding.TextUnmarshaler"`
}
err := mappingByPtr(&s, formSource{"path": {`bar/foo`}}, "form")
require.NoError(t, err)
assert.Equal(t, "bar", s.FileData[0])
assert.Equal(t, "foo", s.FileData[1])
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free