MCPcopy
hub / github.com/connectrpc/connect-go / Bytes

Method Bytes

error.go:88–92  ·  view source on GitHub ↗

Bytes returns a copy of the Protobuf-serialized detail.

()

Source from the content-addressed store, hash-verified

86
87// Bytes returns a copy of the Protobuf-serialized detail.
88func (d *ErrorDetail) Bytes() []byte {
89 out := make([]byte, len(d.pbAny.GetValue()))
90 copy(out, d.pbAny.GetValue())
91 return out
92}
93
94// Value uses the Protobuf runtime's package-global registry to unmarshal the
95// Detail into a strongly-typed message. Typically, clients use Go type

Callers 14

TestErrorDetailsFunction · 0.95
TestHTTPCallGetBodyFunction · 0.80
MarshalStableMethod · 0.80
ReadMethod · 0.80
WriteToMethod · 0.80
marshalAppendMethod · 0.80
UnmarshalMethod · 0.80
UnmarshalMethod · 0.80
MarshalMethod · 0.80
marshalWithGetMethod · 0.80
UnmarshalFuncMethod · 0.80
TestEnvelopeFunction · 0.80

Calls

no outgoing calls

Tested by 5

TestErrorDetailsFunction · 0.76
TestHTTPCallGetBodyFunction · 0.64
TestEnvelopeFunction · 0.64
TestStreamUnexpectedEOFFunction · 0.64
testGenerateFunction · 0.64