ollama/readline/errors.go
Michael Yang b732beba6a lint
2024-08-01 17:06:06 -07:00

15 lines
193 B
Go

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