ollama/readline/errors.go

18 lines
198 B
Go
Raw Normal View History

2023-10-25 23:41:18 +00:00
package readline
import (
"errors"
)
var (
ErrInterrupt = errors.New("Interrupt")
)
type InterruptError struct {
Line []rune
}
func (*InterruptError) Error() string {
return "Interrupted"
}