ollama/readline/errors.go
2023-10-25 16:41:18 -07:00

17 lines
198 B
Go

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