Versions in this module Expand all Collapse all v0 v0.3.1 Dec 2, 2020 Changes in this version + var False = NewBool(false) + var True = NewBool(true) + func Bundle(name string, url string) error + func Imports() map[string]string + func NewImport(path string, data string) + func Require(path string, contents string) seed.Option + func Return(v AnyValue) func(q Ctx) + func Scripts(root seed.Seed) map[string]string + type AnyArray interface + GetArray func() Array + type AnyBool AnyValue + type AnyFunction interface + GetFunction func() Function + type AnyNumber interface + GetNumber func() Number + type AnyObject interface + GetObject func() Object + type AnyPromise interface + GetPromise func() Promise + type AnyScript interface + GetScript func() Script + type AnySet interface + GetSet func() Set + type AnyString interface + GetString func() String + type AnyValue interface + GetBool func() Bool + GetValue func() Value + type Array struct + func (a Array) GetArray() Array + func (a Array) Index(i AnyNumber) Value + type Bool struct + func NewBool(literal bool) Bool + func Truthy(v AnyValue) Bool + func (b Bool) And(other Bool) Bool + func (b Bool) GetBool() Bool + func (b Bool) If(returns AnyValue) Else + func (b Bool) Not() Bool + func (b Bool) Or(other Bool) Bool + type Ctx func(interface{}) + func (Ctx) Bool(literal bool) Bool + func (Ctx) Number(literal float64) Number + func (Ctx) String(literal string) String + func (Ctx) Unique() string + func (q Ctx) Await(v AnyValue) + func (q Ctx) Flush() + func (q Ctx) If(condition AnyBool, do Script) ElseIfChain + func (q Ctx) Return(v AnyValue) + func (q Ctx) Run(fname AnyFunction, args ...AnyValue) + func (q Ctx) Write(b []byte) (int, error) + func NewCtx(w io.Writer, seeds ...seed.Seed) Ctx + type Element struct + func (element Element) RequestFullscreen() Script + type Else struct + func (e Else) Else(returns AnyValue) Value + type ElseIfChain struct + func (e ElseIfChain) Else(do Script) + type Function struct + func Func(name string) Function + func NewFunction(do Script, args ...string) Function + func NewNormalFunction(do Script, args ...string) Function + func (f Function) Call(args ...AnyValue) Value + func (f Function) GetFunction() Function + func (f Function) Run(args ...AnyValue) Script + type NewArray []AnyValue + func (array NewArray) String() string + func (literal NewArray) GetArray() Array + func (literal NewArray) GetBool() Bool + func (literal NewArray) GetValue() Value + type NewObject map[string]AnyValue + func (literal NewObject) GetBool() Bool + func (literal NewObject) GetObject() Object + func (literal NewObject) GetValue() Value + type Number struct + func NewNumber(literal float64) Number + func (n Number) DivideBy(b AnyNumber) Number + func (n Number) GetNumber() Number + func (n Number) Minus(b AnyNumber) Number + func (n Number) ModBy(b AnyNumber) Number + func (n Number) Plus(b AnyNumber) Number + func (n Number) ToString() String + type Object struct + func (o Object) Get(property AnyString) Value + func (o Object) GetObject() Object + func (o Object) Set(property AnyString, value AnyValue) Script + type Promise struct + type Script func(Ctx) + func Append(a, b AnyScript) Script + func If(condition AnyBool, do Script) Script + func Run(fname AnyFunction, args ...AnyValue) Script + func Throw(v AnyValue) Script + func Try(s Script) Script + func (s Script) Append(next Script) Script + func (s Script) Catch(do Script, e ...string) Script + func (s Script) Else(do Script) Script + func (s Script) GetBool() Bool + func (s Script) GetFunction() Function + func (s Script) GetScript() Script + func (s Script) GetValue() Value + type Set struct + type String struct + func NewString(literal string) String + func (s String) Equals(b AnyString) Bool + func (s String) GetString() String + func (s String) Includes(b AnyString) Bool + func (s String) Plus(b AnyString) String + type Value struct + func Await(v AnyValue) Value + func Call(fname AnyFunction, args ...AnyValue) Value + func Global() Value + func New(class AnyValue, args ...AnyValue) Value + func NewValue(format string, args ...AnyValue) Value + func Null() Value + func Undefined() Value + func ValueOf(literal interface{}) Value + func (v Value) Call(method string, args ...AnyValue) Value + func (v Value) Equals(other Value) Bool + func (v Value) Get(property string) Value + func (v Value) GetBool() Bool + func (v Value) GetValue() Value + func (v Value) Index(i int) Value + func (v Value) Run(method string, args ...AnyValue) Script + func (v Value) Set(property string, value AnyValue) Script + func (v Value) String() string + func (v Value) Var(q Ctx) Value v0.3.0 Dec 2, 2020