Home / Function/ msgpackBody() — gin Function Reference

msgpackBody() — gin Function Reference

Architecture documentation for the msgpackBody() function in msgpack_test.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  f8574d50_f70c_ccf3_41dc_fac1ecdadc39["msgpackBody()"]
  35f89c70_61d0_e90b_b96b_49fce8878e4b["msgpack_test.go"]
  f8574d50_f70c_ccf3_41dc_fac1ecdadc39 -->|defined in| 35f89c70_61d0_e90b_b96b_49fce8878e4b
  e49196e5_5b6a_445d_22c1_638afea7e6a8["TestMsgpackBindingBindBody()"]
  e49196e5_5b6a_445d_22c1_638afea7e6a8 -->|calls| f8574d50_f70c_ccf3_41dc_fac1ecdadc39
  style f8574d50_f70c_ccf3_41dc_fac1ecdadc39 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

binding/msgpack_test.go lines 28–34

func msgpackBody(t *testing.T, obj any) []byte {
	var bs bytes.Buffer
	h := &codec.MsgpackHandle{}
	err := codec.NewEncoder(&bs, h).Encode(obj)
	require.NoError(t, err)
	return bs.Bytes()
}

Subdomains

Frequently Asked Questions

What does msgpackBody() do?
msgpackBody() is a function in the gin codebase, defined in binding/msgpack_test.go.
Where is msgpackBody() defined?
msgpackBody() is defined in binding/msgpack_test.go at line 28.
What calls msgpackBody()?
msgpackBody() is called by 1 function(s): TestMsgpackBindingBindBody.

Analyze Your Own Codebase

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

Try Supermodel Free