Documentation
¶
Index ¶
- type Interpreter
- func (i *Interpreter) Close() error
- func (i *Interpreter) Exec(code string) (string, error)
- func (i *Interpreter) ExecFile(path string) (string, error)
- func (i *Interpreter) ExecFunction(module, function string, args ...interface{}) (string, error)
- func (i *Interpreter) InstallPackage(pkg string) error
- func (i *Interpreter) WithEnv(env []string) *Interpreter
- func (i *Interpreter) WithPath(path string) *Interpreter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interpreter ¶
type Interpreter struct {
// contains filtered or unexported fields
}
func NewInterpreter ¶
func NewInterpreter() (*Interpreter, error)
func (*Interpreter) Close ¶
func (i *Interpreter) Close() error
func (*Interpreter) ExecFunction ¶
func (i *Interpreter) ExecFunction(module, function string, args ...interface{}) (string, error)
func (*Interpreter) InstallPackage ¶
func (i *Interpreter) InstallPackage(pkg string) error
func (*Interpreter) WithEnv ¶
func (i *Interpreter) WithEnv(env []string) *Interpreter
func (*Interpreter) WithPath ¶
func (i *Interpreter) WithPath(path string) *Interpreter
Click to show internal directories.
Click to hide internal directories.