(m string)
| 163 | } |
| 164 | |
| 165 | func NewErrorWithFormat(m string) *ErrorWithFormat { |
| 166 | return &ErrorWithFormat{error: errors.New(m)} |
| 167 | } |
| 168 | |
| 169 | func (f *ErrorWithFormat) Format(s fmt.State, verb rune) { |
| 170 | fmt.Fprintf(s, "This the format: %v", f.error) |
no outgoing calls
no test coverage detected