sys

package
v0.40.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package sys provides the sys extension library.

Index

Constants

View Source
const LibraryName = "sys"

LibraryName is the script-visible name of the sys library.

Variables

This section is empty.

Functions

func NewInputBuiltin

func NewInputBuiltin(stdin io.Reader) *object.Builtin

NewInputBuiltin returns an input() builtin backed by the given reader. Callers that manage their own Scriptling instance can use this to inject input() directly via SetObjectVar when the reader is known at a different point than Register.

func NewLibrary

func NewLibrary(argv []string, stdin io.Reader) *object.Library

NewLibrary creates a new sys library with the given argv and optional stdin reader.

func Register

func Register(registrar sysRegistrar, argv []string, stdin io.Reader)

Register registers the sys library with argv and, when stdin is non-nil, an input() builtin reading from it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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