complete

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package complete supplies REPL symbol completion. It lives outside package main so it can be tested — the repo keeps test files out of the repo root.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Completer

type Completer struct {
	Ctx *compiler.Context
}

Completer implements readline's AutoCompleter interface. readline passes line as []rune and pos as a rune index; we stay in runes throughout so non-ASCII input and mid-line cursors are handled correctly.

func (*Completer) Do

func (c *Completer) Do(line []rune, pos int) (newLine [][]rune, length int)

Jump to

Keyboard shortcuts

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