Errorf formats according to a format specifier and returns the string converted to an os.ErrorString, which satisfies the os.Error interface.
(format string, a ...interface{})
| 185 | // Errorf formats according to a format specifier and returns the string |
| 186 | // converted to an os.ErrorString, which satisfies the os.Error interface. |
| 187 | func Errorf(format string, a ...interface{}) os.Error { |
| 188 | return os.ErrorString(Sprintf(format, a...)) |
| 189 | } |
| 190 | |
| 191 | // These routines do not take a format string |
| 192 |