interpreter

package
v0.0.0-...-54d0854 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBlockedImportError

func IsBlockedImportError(err error) bool

func IsNoBooleanResultError

func IsNoBooleanResultError(err error) bool

Types

type BlockedImportError

type BlockedImportError struct {
	BlockedImport string
}

func (*BlockedImportError) Error

func (e *BlockedImportError) Error() string

type GolangInterpreter

type GolangInterpreter struct {
	// contains filtered or unexported fields
}

func NewGolangInterpreter

func NewGolangInterpreter(code string) *GolangInterpreter

func (*GolangInterpreter) Eval

func (gi *GolangInterpreter) Eval() (reflect.Value, error)

func (*GolangInterpreter) EvalBool

func (gi *GolangInterpreter) EvalBool() (bool, error)

func (*GolangInterpreter) EvalString

func (gi *GolangInterpreter) EvalString() (string, error)

func (*GolangInterpreter) WithBindings

func (gi *GolangInterpreter) WithBindings(bindings map[string]interface{}) *GolangInterpreter

type NoBooleanResultError

type NoBooleanResultError struct {
	Result interface{}
}

func (*NoBooleanResultError) Error

func (e *NoBooleanResultError) Error() string

Jump to

Keyboard shortcuts

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