(err error)
| 38 | var ErrCancel = errors.New("Error: cancelled") |
| 39 | |
| 40 | func IsUserCancellation(err error) bool { |
| 41 | return errors.Is(err, ErrCancel) || errors.Is(err, terminal.InterruptErr) |
| 42 | } |
| 43 | |
| 44 | func MutuallyExclusive(message string, conditions ...bool) error { |
| 45 | numTrue := 0 |
no outgoing calls
no test coverage detected