Errorf is a helper function to return an Error with a given code and formatted message.
(code string, format string, args ...interface{})
| 65 | |
| 66 | // Errorf is a helper function to return an Error with a given code and formatted message. |
| 67 | func Errorf(code string, format string, args ...interface{}) *Error { |
| 68 | return &Error{ |
| 69 | Code: code, |
| 70 | Message: fmt.Sprintf(format, args...), |
| 71 | } |
| 72 | } |
no outgoing calls
no test coverage detected