newErrBadName returns a ErrBadName which returns the given formatted string from Error().
(fmtStr string, args ...any)
| 36 | |
| 37 | // newErrBadName returns a ErrBadName which returns the given formatted string from Error(). |
| 38 | func newErrBadName(fmtStr string, args ...any) *ErrBadName { |
| 39 | return &ErrBadName{fmt.Sprintf(fmtStr, args...)} |
| 40 | } |
| 41 | |
| 42 | // IsErrBadName returns true if the given error is an ErrBadName. |
| 43 | // |
no outgoing calls
no test coverage detected
searching dependent graphs…