Documentation ¶
Index ¶
- type ColorPrinter
- type MonochromePrinter
- func (p MonochromePrinter) Fprint(w io.Writer, arg ...interface{}) (int, error)
- func (p MonochromePrinter) Fprintf(w io.Writer, s string, arg ...interface{}) (int, error)
- func (p MonochromePrinter) Fprintln(w io.Writer, arg ...interface{}) (int, error)
- func (p MonochromePrinter) With(_ ...color.Attribute) Printer
- type Opts
- type Printer
- type Repl
- func (r *Repl) Close() error
- func (r *Repl) Debug(s string)
- func (r *Repl) Err(s string)
- func (r *Repl) Eval(code string)
- func (r *Repl) Interrupt()
- func (r *Repl) Load(filename string)
- func (r *Repl) LoadWithResultVisibility(filename string, hidesResult bool)
- func (r *Repl) Out(s string)
- func (r *Repl) Start()
- func (r *Repl) StartWatchingInterruption()
- func (r *Repl) SupportsOp(op string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColorPrinter ¶
func NewColorPrinter ¶
func NewColorPrinter() ColorPrinter
type MonochromePrinter ¶
type MonochromePrinter struct{}
func NewMonochromePrinter ¶
func NewMonochromePrinter() MonochromePrinter
func (MonochromePrinter) Fprint ¶
func (p MonochromePrinter) Fprint(w io.Writer, arg ...interface{}) (int, error)
type Printer ¶
type Printer interface { With(...color.Attribute) Printer Fprint(io.Writer, ...interface{}) (int, error) Fprintln(io.Writer, ...interface{}) (int, error) Fprintf(io.Writer, string, ...interface{}) (int, error) }
func NewPrinter ¶
type Repl ¶
type Repl struct {
// contains filtered or unexported fields
}
func (*Repl) LoadWithResultVisibility ¶ added in v0.2.0
func (*Repl) StartWatchingInterruption ¶
func (r *Repl) StartWatchingInterruption()
func (*Repl) SupportsOp ¶
Click to show internal directories.
Click to hide internal directories.