repl

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package repl provides an interactive protocol shell.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binding

type Binding struct {
	Name  string
	Value interface{}
}

Binding represents a variable binding in the REPL.

type Session

type Session struct {
	Bindings map[string]interface{}
	History  []string
}

Session holds REPL session state.

func NewSession

func NewSession() *Session

NewSession creates a new REPL session.

func (*Session) Completions

func (s *Session) Completions(prefix string) []string

Completions returns auto-complete suggestions.

func (*Session) Execute

func (s *Session) Execute(input string) (string, error)

Execute executes a REPL command and returns the output.

Jump to

Keyboard shortcuts

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