util

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All added in v0.2.5

func All[T starlark.Iterable](v T) iter.Seq[starlark.Value]

func Chdir

func Chdir(thread *starlark.Thread, wd string)

func GetContext added in v0.2.5

func GetContext(thread *starlark.Thread) context.Context

func Getwd

func Getwd(thread *starlark.Thread) string

func Must added in v0.2.5

func Must(err error)

func Must2 added in v0.2.5

func Must2[T any](v T, err error) T

func SetContext added in v0.2.5

func SetContext(ctx context.Context, thread *starlark.Thread) (done func())

func SetStdio

func SetStdio(thread *starlark.Thread, stdout, stderr io.Writer)

func Stdio

func Stdio(thread *starlark.Thread) (io.Writer, io.Writer)

Types

type StringList

type StringList []string

func (StringList) List

func (l StringList) List() *starlark.List

func (*StringList) Unpack

func (l *StringList) Unpack(v starlark.Value) error

Jump to

Keyboard shortcuts

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