TestJSONBindingBindBody() — gin Function Reference
Architecture documentation for the TestJSONBindingBindBody() function in json_test.go from the gin codebase.
Entity Profile
Relationship Graph
Source Code
binding/json_test.go lines 22–29
func TestJSONBindingBindBody(t *testing.T) {
var s struct {
Foo string `json:"foo"`
}
err := jsonBinding{}.BindBody([]byte(`{"foo": "FOO"}`), &s)
require.NoError(t, err)
assert.Equal(t, "FOO", s.Foo)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free