repl

package
v0.0.0-...-5871ae9 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2017 License: BSD-3-Clause Imports: 8 Imported by: 2

Documentation

Overview

Package repl implements an event loop aware REPL (read-eval-print loop) for otto.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(l *loop.Loop) error

Run creates a REPL with the default prompt and no prelude.

func RunWithPrelude

func RunWithPrelude(l *loop.Loop, prelude string) error

RunWithPrelude runs a REPL with the default prompt and the given prelude.

func RunWithPrompt

func RunWithPrompt(l *loop.Loop, prompt string) error

RunWithPrompt runs a REPL with the given prompt and no prelude.

func RunWithPromptAndPrelude

func RunWithPromptAndPrelude(l *loop.Loop, prompt, prelude string) error

RunWithPromptAndPrelude runs a REPL with the given prompt and prelude.

Types

This section is empty.

Jump to

Keyboard shortcuts

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