package dinetrpc import ( "testing" "github.com/davecgh/go-spew/spew" ) func TestMarshalMsgpack(t *testing.T) { msg := newTestMsg() b, _ := MarshalMsgpack(msg.RequestMsg) r := &RequestMsg{} _ = UnmarshalMsgpack(b, r) spew.Dump(r) }