ollama/readline/errors.go

16 lines
193 B
Go
Raw Normal View History

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