Documentation ¶
Index ¶
- Variables
- type ASTMarshaler
- type Access
- type Array
- func (a Array) Bool(c *Context) (bool, error)
- func (a Array) Exec(c *Context) (interface{}, error)
- func (s Array) Format(st fmt.State, verb rune)
- func (a Array) GoString() string
- func (a Array) Interface() interface{}
- func (a Array) Len() int
- func (a Array) Less(i, j int) bool
- func (a Array) LushString() string
- func (a Array) MarshalJSON() ([]byte, error)
- func (a Array) Slice() []interface{}
- func (a Array) String() string
- func (a Array) Swap(i, j int)
- type Assign
- type Block
- type Bool
- type Boolable
- type Break
- type Call
- type Comment
- type Context
- type Continue
- type Current
- type Else
- type ElseIf
- type Execable
- type ExecableNode
- type Expression
- type Float
- type For
- type Func
- type Goroutine
- type Ident
- type Idents
- type If
- type Import
- type Integer
- func (d Integer) Bool(c *Context) (bool, error)
- func (d Integer) Exec(c *Context) (interface{}, error)
- func (a Integer) Format(st fmt.State, verb rune)
- func (a Integer) GoString() string
- func (d Integer) Int() int
- func (d Integer) Interface() interface{}
- func (a Integer) MarshalJSON() ([]byte, error)
- func (d Integer) String() string
- type Iterator
- type Let
- type LushStringer
- type Map
- func (m Map) Bool(c *Context) (bool, error)
- func (m Map) Exec(c *Context) (interface{}, error)
- func (a Map) Format(st fmt.State, verb rune)
- func (m Map) GoString() string
- func (m Map) Interface() interface{}
- func (m Map) Map() map[string]interface{}
- func (m Map) MarshalJSON() ([]byte, error)
- func (m Map) String() string
- type Meta
- type Nil
- type Node
- type Nodes
- type Noop
- type OpExpression
- func (e OpExpression) Add(c *Context) (interface{}, error)
- func (e OpExpression) And(c *Context) (bool, error)
- func (e OpExpression) Bool(c *Context) (bool, error)
- func (e OpExpression) Divide(c *Context) (interface{}, error)
- func (e OpExpression) Exec(c *Context) (interface{}, error)
- func (e OpExpression) Format(st fmt.State, verb rune)
- func (e OpExpression) MarshalJSON() ([]byte, error)
- func (e OpExpression) Modulus(c *Context) (interface{}, error)
- func (e OpExpression) Multiply(c *Context) (interface{}, error)
- func (e OpExpression) Or(c *Context) (bool, error)
- func (e OpExpression) String() string
- func (e OpExpression) Sub(c *Context) (interface{}, error)
- type Range
- type Return
- type Returned
- type Script
- type Shebang
- type String
- type Var
Constants ¶
This section is empty.
Variables ¶
View Source
var False = Bool{Value: false}
View Source
var True = Bool{Value: true}
Functions ¶
This section is empty.
Types ¶
type ASTMarshaler ¶
type Access ¶
func (Access) MarshalJSON ¶
type Array ¶
type Array struct { Value []interface{} Meta Meta }
func (Array) LushString ¶
func (Array) MarshalJSON ¶
type Assign ¶
func (Assign) MarshalJSON ¶
type Block ¶
func (Block) MarshalJSON ¶
type Bool ¶
func (Bool) MarshalJSON ¶
type Call ¶
func (Call) MarshalJSON ¶
type Context ¶
type Else ¶
func (Else) MarshalJSON ¶
type ExecableNode ¶
type Float ¶
func (Float) MarshalJSON ¶
type For ¶
type For struct { Name ExecableNode Args Idents Block *Block Meta Meta // contains filtered or unexported fields }
func (For) MarshalJSON ¶
type Func ¶
func (Func) MarshalJSON ¶
type Goroutine ¶
type Goroutine struct {
Call Call
}
func NewGoroutine ¶
func (Goroutine) MarshalJSON ¶
type Ident ¶
func (Ident) MarshalJSON ¶
type If ¶
type If struct { PreCondition Node Expression Expression Clause Node Block *Block Meta Meta }
func (If) MarshalJSON ¶
type Import ¶
func (Import) MarshalJSON ¶
type Iterator ¶
type Iterator interface {
Next() interface{}
}
Iterator type can be implemented and used by the `for` command to build loops in templates
type Let ¶
func (Let) MarshalJSON ¶
type LushStringer ¶
type LushStringer interface {
LushString() string
}
LushStringer is implemented by any value that has a LushString method, which defines the Lush syntax for that value. The LushString method is used to print values passed as an operand to a %*v format.
type Map ¶
func (Map) MarshalJSON ¶
type Meta ¶
func (Meta) MarshalJSON ¶
type Noop ¶
func (Noop) MarshalJSON ¶
type OpExpression ¶
type OpExpression struct { A Node B Node Op string Meta Meta // contains filtered or unexported fields }
func NewOpExpression ¶
func NewOpExpression(a Node, op string, b Node) (*OpExpression, error)
func NewPopExpression ¶
func NewPopExpression(a Node, op string, b Node) (*OpExpression, error)
func (OpExpression) Add ¶
func (e OpExpression) Add(c *Context) (interface{}, error)
func (OpExpression) Divide ¶
func (e OpExpression) Divide(c *Context) (interface{}, error)
func (OpExpression) Exec ¶
func (e OpExpression) Exec(c *Context) (interface{}, error)
func (OpExpression) MarshalJSON ¶
func (e OpExpression) MarshalJSON() ([]byte, error)
func (OpExpression) Modulus ¶
func (e OpExpression) Modulus(c *Context) (interface{}, error)
func (OpExpression) Multiply ¶
func (e OpExpression) Multiply(c *Context) (interface{}, error)
func (OpExpression) String ¶
func (e OpExpression) String() string
func (OpExpression) Sub ¶
func (e OpExpression) Sub(c *Context) (interface{}, error)
type Range ¶
func (Range) MarshalJSON ¶
type Return ¶
func (Return) MarshalJSON ¶
type Returned ¶
type Returned struct { Value interface{} // contains filtered or unexported fields }
func NewReturned ¶
func NewReturned(i interface{}) (ret Returned)
type String ¶
func (String) MarshalJSON ¶
type Var ¶
func (Var) MarshalJSON ¶
Source Files ¶
- access.go
- array.go
- assign.go
- ast.go
- block.go
- bool.go
- break.go
- call.go
- comment.go
- context.go
- continue.go
- current.go
- else.go
- else_if.go
- exec.go
- expression.go
- float.go
- for.go
- format.go
- func.go
- goroutine.go
- ident.go
- if.go
- import.go
- integer.go
- interface.go
- iterator.go
- let.go
- map.go
- meta.go
- nil.go
- node.go
- nodes.go
- noop.go
- op_expression.go
- range.go
- return.go
- returned.go
- script.go
- shebang.go
- string.go
- stringer.go
- var.go
Click to show internal directories.
Click to hide internal directories.