forked from third-party-mirrors/ollama
17 lines
250 B
Go
17 lines
250 B
Go
package readline
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
var ErrInterrupt = errors.New("Interrupt")
|
|
var ErrNewLineDetected = errors.New("new line detected")
|
|
|
|
type InterruptError struct {
|
|
Line []rune
|
|
}
|
|
|
|
func (*InterruptError) Error() string {
|
|
return "Interrupted"
|
|
}
|