18 lines
198 B
Go
18 lines
198 B
Go
|
package readline
|
||
|
|
||
|
import (
|
||
|
"errors"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
ErrInterrupt = errors.New("Interrupt")
|
||
|
)
|
||
|
|
||
|
type InterruptError struct {
|
||
|
Line []rune
|
||
|
}
|
||
|
|
||
|
func (*InterruptError) Error() string {
|
||
|
return "Interrupted"
|
||
|
}
|