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

Function Newf

status/status.go:53–55  ·  view source on GitHub ↗

Newf returns New(c, fmt.Sprintf(format, a...)).

(c codes.Code, format string, a ...any)

Source from the content-addressed store, hash-verified

51
52// Newf returns New(c, fmt.Sprintf(format, a...)).
53func Newf(c codes.Code, format string, a ...any) *Status {
54 return New(c, fmt.Sprintf(format, a...))
55}
56
57// Error returns an error representing c and msg. If c is OK, returns nil.
58func Error(c codes.Code, msg string) error {

Callers 6

processUnaryRPCMethod · 0.92
processStreamingRPCMethod · 0.92
checkRecvPayloadFunction · 0.92
operateHeadersMethod · 0.92
CloseMethod · 0.92
handleRSTStreamMethod · 0.92

Calls 1

NewFunction · 0.70

Tested by

no test coverage detected