Newf returns New(c, fmt.Sprintf(format, a...)).
(c codes.Code, format string, a ...any)
| 51 | |
| 52 | // Newf returns New(c, fmt.Sprintf(format, a...)). |
| 53 | func 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. |
| 58 | func Error(c codes.Code, msg string) error { |
no test coverage detected