errors.go 193 Bytes
Newer Older
mashun1's avatar
v1  
mashun1 committed
1
2
3
4
5
6
package readline

import (
	"errors"
)

xuxzh1's avatar
init  
xuxzh1 committed
7
var ErrInterrupt = errors.New("Interrupt")
mashun1's avatar
v1  
mashun1 committed
8
9
10
11
12
13
14
15

type InterruptError struct {
	Line []rune
}

func (*InterruptError) Error() string {
	return "Interrupted"
}