Documentation ¶
Index ¶
- Constants
- Variables
- func ObjectEqual(a, b Object) bool
- type Component
- type ElementNode
- type Func
- type NodeType
- type Object
- func (o Object) Bool(key string) bool
- func (o Object) Bools(key string) []bool
- func (o Object) Func(key string) Func
- func (o Object) Funcs(key string) []Func
- func (o Object) Get(key string) interface{}
- func (o Object) Int(key string) int
- func (o Object) Ints(key string) []int
- func (o Object) Key() string
- func (o Object) Set(key string, value interface{})
- func (o Object) String(key string) string
- func (o Object) Strings(key string) []string
- type TextNode
- type VNode
- type VNodes
- type Value
Constants ¶
View Source
const ( NodeTypeUnknown NodeType = 0 NodeTypeElementNode = 1 NodeTypeTextNode = 3 )
Variables ¶
View Source
var ( BlankElement = Text("") BlankComponent = func(Object) VNode { return BlankElement } )
Functions ¶
func ObjectEqual ¶
Types ¶
type ElementNode ¶
type Value ¶
type Value interface { Get(p string) Value Set(p string, x interface{}) Index(i int) Value SetIndex(i int, x interface{}) Length() int Call(m string, args ...interface{}) Value Invoke(args ...interface{}) Value New(args ...interface{}) Value Float() float64 Int() int Bool() bool Truthy() bool String() string InstanceOf(t Value) bool }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.