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

Function FromProto

status/status.go:73–75  ·  view source on GitHub ↗

FromProto returns a Status representing s.

(s *spb.Status)

Source from the content-addressed store, hash-verified

71
72// FromProto returns a Status representing s.
73func FromProto(s *spb.Status) *Status {
74 return status.FromProto(s)
75}
76
77// FromError returns a Status representation of err.
78//

Callers 5

ErrorProtoFunction · 0.70
TestFromToProtoMethod · 0.70
TestFromNilProtoMethod · 0.70

Calls 1

FromProtoFunction · 0.92

Tested by 4

TestFromToProtoMethod · 0.56
TestFromNilProtoMethod · 0.56