Documentation
¶
Index ¶
- func GetCtx(thread *starlark.Thread) context.Context
- func GetCurrentFilePath(thread *starlark.Thread) string
- func GetDryRun(thread *starlark.Thread) bool
- func NewThread(name string, options ...ThreadOption) *starlark.Thread
- func SetCtx(ctx context.Context, thread *starlark.Thread)
- func SetDryRun(thread *starlark.Thread, dryrun bool)
- type ThreadOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentFilePath ¶ added in v0.0.4
Types ¶
type ThreadOption ¶ added in v0.0.4
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
Click to show internal directories.
Click to hide internal directories.