Home / Function/ TestMappingCustomUnmarshalTextHexUri() — gin Function Reference

TestMappingCustomUnmarshalTextHexUri() — gin Function Reference

Architecture documentation for the TestMappingCustomUnmarshalTextHexUri() function in form_mapping_test.go from the gin codebase.

Entity Profile

Relationship Graph

Source Code

binding/form_mapping_test.go lines 756–763

func TestMappingCustomUnmarshalTextHexUri(t *testing.T) {
	var s struct {
		Field customUnmarshalTextHex `uri:"field,parser=encoding.TextUnmarshaler"`
	}
	err := mappingByPtr(&s, formSource{"field": {`f5`}}, "uri")
	require.NoError(t, err)
	assert.EqualValues(t, 245, s.Field)
}

Domain

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free