starlarkos

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = &starlarkstruct.Module{
	Name: "os",
	Members: starlark.StringDict{
		"getenv": starlark.NewBuiltin("os.getenv", getEnv),
		"stdin":  starlark.NewBuiltin("os.stdin", getStdin),
	},
}

Module starlarkos is a Starlark module of os-related functions and constants. The module defines the following functions:

getenv(name) - Gets the environment variable having the given name as a string, or None if not exists.

Functions

This section is empty.

Types

type File added in v0.4.0

type File struct {
	*os.File
	// contains filtered or unexported fields
}

File is the starlark.Value representation of a file.

func (File) Freeze added in v0.4.0

func (f File) Freeze()

func (File) GoString added in v0.4.0

func (f File) GoString() string

func (File) Hash added in v0.4.0

func (f File) Hash() (uint32, error)

func (File) Len added in v0.4.0

func (f File) Len() int

func (File) String added in v0.4.0

func (f File) String() string

func (File) Truth added in v0.4.0

func (f File) Truth() starlark.Bool

func (File) Type added in v0.4.0

func (f File) Type() string

Jump to

Keyboard shortcuts

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