Documentation ¶
Index ¶
- func Append(arr, elem interface{}) (interface{}, error)
- func Apply(v Scope)
- func ComputeBinaryOp(xI, yI interface{}, op token.Token) (interface{}, error)
- func ComputeUnaryOp(xI interface{}, op token.Token) (interface{}, error)
- func Highlight(s string) string
- func HighlightWords(s string, words []string, color, edges string) string
- func InterpretExpr(scope Scope, expr ast.Expr) (interface{}, error)
- func InterpretString(scope Scope, exprStr string) (interface{}, error)
- func Make(t interface{}, args ...interface{}) (interface{}, error)
- func Pry(v ...interface{})
- func StringToType(str string) (reflect.Type, error)
- func ValuesToInterfaces(vals []reflect.Value) []interface{}
- type Package
- type Scope
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Append ¶
func Append(arr, elem interface{}) (interface{}, error)
A runtime replacement for the append function
func ComputeBinaryOp ¶
func ComputeUnaryOp ¶
func InterpretExpr ¶
Interprets an ast.Expr and returns the value.
func InterpretString ¶
Interprets a string of go code and returns the result.
func Make ¶
func Make(t interface{}, args ...interface{}) (interface{}, error)
A runtime replacement for the make function
func StringToType ¶
Returns the reflect.Type corresponding to the type string provided. Ex: StringToType("int")
func ValuesToInterfaces ¶
Converts a slice of []reflect.Value to []interface{}
Types ¶
Click to show internal directories.
Click to hide internal directories.