Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCompileFailed = errors.New("failed to compile starlark script") ErrContentNil = errors.New("starlark content is nil") )
Functions ¶
func CompileWithEmptyGlobals ¶
func CompileWithEmptyGlobals( scriptBodyBytes []byte, globals []string, ) (*starlarkLib.Program, error)
CompileWithEmptyGlobals parses and compiles the script content, with custom global names which are needed when parsing a script that will eventually have globals injected at eval time. For example, if a script uses a request or response object, it needs to be compiled with those global names, even though they won't be available until eval time.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.