MCPcopy
hub / github.com/grpc/grpc-go / str

Function str

status/status_test.go:445–453  ·  view source on GitHub ↗
(s *Status)

Source from the content-addressed store, hash-verified

443}
444
445func str(s *Status) string {
446 if s == nil {
447 return "nil"
448 }
449 if s.Proto() == nil {
450 return "<Code=OK>"
451 }
452 return fmt.Sprintf("<Code=%v, Message=%q, Details=%+v>", s.Code(), s.Message(), s.Details())
453}
454
455// mustMarshalAny converts a protobuf message to an any.
456func mustMarshalAny(msg proto.Message) *anypb.Any {

Callers 2

Calls 4

ProtoMethod · 0.80
CodeMethod · 0.80
MessageMethod · 0.80
DetailsMethod · 0.80

Tested by

no test coverage detected