new readline library (#847)

This commit is contained in:
Patrick Devine
2023-10-25 16:41:18 -07:00
committed by GitHub
parent 49443e7da5
commit deeac961bb
11 changed files with 972 additions and 86 deletions

17
readline/errors.go Normal file
View File

@@ -0,0 +1,17 @@
package readline
import (
"errors"
)
var (
ErrInterrupt = errors.New("Interrupt")
)
type InterruptError struct {
Line []rune
}
func (*InterruptError) Error() string {
return "Interrupted"
}