mirror of
https://github.com/ollama/ollama.git
synced 2026-02-19 15:57:07 -05:00
17 lines
238 B
Go
17 lines
238 B
Go
package readline
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
var ErrInterrupt = errors.New("Interrupt")
|
|
var ErrEditPrompt = errors.New("EditPrompt")
|
|
|
|
type InterruptError struct {
|
|
Line []rune
|
|
}
|
|
|
|
func (*InterruptError) Error() string {
|
|
return "Interrupted"
|
|
}
|