repl

package
v1.2.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2026 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// ContinuePrompt - the current code statement is not completed.
	ContinuePrompt string = "... "
	// NormalPrompt - start of a code statement.
	NormalPrompt string = ">>> "
)

Variables

This section is empty.

Functions

This section is empty.

Types

type REPL

type REPL struct {
	*ixgo.Repl
	// contains filtered or unexported fields
}

func NewREPL

func NewREPL(mode ixgo.Mode) *REPL

func (*REPL) Dump

func (r *REPL) Dump(expr string)

func (*REPL) IsNormal

func (r *REPL) IsNormal() bool

func (*REPL) Printf

func (r *REPL) Printf(_fmt string, a ...interface{})

func (*REPL) Run

func (r *REPL) Run(line string) error

func (*REPL) SetNormal

func (r *REPL) SetNormal()

func (*REPL) SetPrompt

func (r *REPL) SetPrompt(prompt string)

func (*REPL) SetUI

func (r *REPL) SetUI(term UI)

func (*REPL) TryDump

func (r *REPL) TryDump(expr string) bool

type UI

type UI interface {
	SetPrompt(prompt string)
	Printf(format string, a ...interface{})
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL