ollama/readline/errors.go

16 lines
193 B
Go
Raw Normal View History

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