Files
ollama/readline/errors.go

17 lines
238 B
Go

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