stdlib

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package stdlib contains all of the basic building blocks of OS operation. It is intended to be cross platform and minimalistic in scale. Its largest sublibrary is "sys" and to use it simply use the syntax `load("sys", "myFunc")` where `myFunc` is one of the premade library functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(options ...Option) script.Option

Load is a script Option that loads the standard library into a script's execution environment

Types

type Dependencies

type Dependencies struct {
	Assets http.FileSystem
}

Dependencies holds library dependencies that may be accessed by stdlib functions.

type Option

type Option func(*Dependencies)

An Option enables configuration of stdlib dependencies.

func WithAssets

func WithAssets(fs http.FileSystem) Option

WithAssets loading assets from the provided filesystem.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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