errors.go 193 B

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