ollama/readline/errors.go
2026-05-06 17:26:05 -07:00

18 lines
241 B
Go

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