Home / Function/ TestYAMLBindingBindBody() — gin Function Reference

TestYAMLBindingBindBody() — gin Function Reference

Architecture documentation for the TestYAMLBindingBindBody() function in yaml_test.go from the gin codebase.

Entity Profile

Relationship Graph

Source Code

binding/yaml_test.go lines 14–21

func TestYAMLBindingBindBody(t *testing.T) {
	var s struct {
		Foo string `yaml:"foo"`
	}
	err := yamlBinding{}.BindBody([]byte("foo: FOO"), &s)
	require.NoError(t, err)
	assert.Equal(t, "FOO", s.Foo)
}

Domain

Subdomains

Analyze Your Own Codebase

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

Try Supermodel Free