ollama/readline/errors.go

16 lines
193 B
Go
Raw Normal View History

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