repl

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2022 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

Package repl provides a REPL environment for REPL mode.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type REPL

type REPL struct {
	// contains filtered or unexported fields
}

REPL represents a REPL mechanism.

func New

func New(cfg *config.Config, p prompt.Prompt, ui cui.UI, pkgName, svcName string) (*REPL, error)

New instantiates a new REPL instance. New always calls p.SetPrefix for display the server addr. New may return an error if some of passed arguments are invalid.

func (*REPL) Run

func (r *REPL) Run(ctx context.Context) error

Run starts the read-eval-print-loop.

Jump to

Keyboard shortcuts

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