Versions in this module Expand all Collapse all v0 v0.0.4 Jul 13, 2015 Changes in this version + var ErrVersion = errors.New("version mismatch") + func Run(src interface{}) (*Otto, Value, error) + type Error struct + func (err Error) Error() string + func (err Error) String() string + type FunctionCall struct + ArgumentList []Value + Otto *Otto + This Value + func (self FunctionCall) Argument(index int) Value + type Object struct + func (self Object) Call(name string, argumentList ...interface{}) (Value, error) + func (self Object) Class() string + func (self Object) Get(name string) (Value, error) + func (self Object) Keys() []string + func (self Object) Set(name string, value interface{}) error + func (self Object) Value() Value + type Otto struct + Interrupt chan func() + func New() *Otto + func (in *Otto) Copy() *Otto + func (self *Otto) Compile(filename string, src interface{}) (*Script, error) + func (self Otto) Call(source string, this interface{}, argumentList ...interface{}) (Value, error) + func (self Otto) Get(name string) (Value, error) + func (self Otto) Object(source string) (*Object, error) + func (self Otto) Run(src interface{}) (Value, error) + func (self Otto) Set(name string, value interface{}) error + func (self Otto) ToValue(value interface{}) (Value, error) + type Script struct + func (self *Script) String() string + type Value struct + func FalseValue() Value + func NaNValue() Value + func NullValue() Value + func ToValue(value interface{}) (Value, error) + func TrueValue() Value + func UndefinedValue() Value + func (self Value) Export() (interface{}, error) + func (value Value) Call(this Value, argumentList ...interface{}) (Value, error) + func (value Value) Class() string + func (value Value) IsBoolean() bool + func (value Value) IsDefined() bool + func (value Value) IsFunction() bool + func (value Value) IsNaN() bool + func (value Value) IsNull() bool + func (value Value) IsNumber() bool + func (value Value) IsObject() bool + func (value Value) IsPrimitive() bool + func (value Value) IsString() bool + func (value Value) IsUndefined() bool + func (value Value) Object() *Object + func (value Value) String() string + func (value Value) ToBoolean() (bool, error) + func (value Value) ToFloat() (float64, error) + func (value Value) ToInteger() (int64, error) + func (value Value) ToString() (string, error)