starlarklib

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCtx added in v0.0.4

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

func GetCurrentFilePath added in v0.0.4

func GetCurrentFilePath(thread *starlark.Thread) string

func GetDryRun added in v0.0.8

func GetDryRun(thread *starlark.Thread) bool

func NewThread added in v0.0.4

func NewThread(name string, options ...ThreadOption) *starlark.Thread

func SetCtx added in v0.0.4

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

func SetDryRun added in v0.0.8

func SetDryRun(thread *starlark.Thread, dryrun bool)

Types

type ThreadOption added in v0.0.4

type ThreadOption func(*starlark.Thread)

func WithContext added in v0.0.4

func WithContext(ctx context.Context) ThreadOption

func WithDryRun added in v0.0.8

func WithDryRun(dryrun bool) ThreadOption

func WithLoad added in v0.0.4

func WithLoad(loadFn func(thread *starlark.Thread, module string) (starlark.StringDict, error)) ThreadOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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