errors.go 198 B

1234567891011121314151617
  1. package readline
  2. import (
  3. "errors"
  4. )
  5. var (
  6. ErrInterrupt = errors.New("Interrupt")
  7. )
  8. type InterruptError struct {
  9. Line []rune
  10. }
  11. func (*InterruptError) Error() string {
  12. return "Interrupted"
  13. }