ollama/readline/errors.go
2024-09-17 18:19:31 -07:00

19 lines
258 B
Go

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