bootstrap

package
v0.0.0-...-31ab3be Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package bootstrap performs initial setup of the environment. Create a new `*namespace.Manager` and then pass it to `Into`.

Index

Constants

View Source
const (
	BuiltInNotFound = "built-in not found: %s"
	SpecialNotFound = "special form not found: %s"
	MacroNotFound   = "macro not found: %s"
)

Error messages

Variables

This section is empty.

Functions

func DevNullManager

func DevNullManager() *namespace.Manager

DevNullManager configures a manager that is completely isolated from the top-level of the system. All I/O is rerouted to and from /dev/null

func Into

func Into(manager *namespace.Manager)

Into sets up initial built-ins and assets

func TopLevelManager

func TopLevelManager() *namespace.Manager

TopLevelManager configures a manager that could be used at the top-level of the system, such as the REPL. It has access to the *env*, *args*, and standard in/out/err file streams.

Types

This section is empty.

Jump to

Keyboard shortcuts

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