Versions in this module Expand all Collapse all v1 v1.1.0 Jun 15, 2015 v1.0.0 Jun 8, 2015 Changes in this version + func HelperNameStr(node Node) (string, bool) + func LiteralStr(node Node) (string, bool) + func PathExpressionStr(node Node) (string, bool) + func Print(node Node) string + type BlockStatement struct + CloseStrip *Strip + Expression *Expression + Inverse *Program + InverseStrip *Strip + OpenStrip *Strip + Program *Program + func NewBlockStatement(pos int, line int) *BlockStatement + func (node *BlockStatement) Accept(visitor Visitor) interface{} + func (node *BlockStatement) String() string + type BooleanLiteral struct + Original string + Value bool + func NewBooleanLiteral(pos int, line int, val bool, original string) *BooleanLiteral + func (node *BooleanLiteral) Accept(visitor Visitor) interface{} + func (node *BooleanLiteral) Canonical() string + func (node *BooleanLiteral) String() string + type CommentStatement struct + Strip *Strip + Value string + func NewCommentStatement(pos int, line int, val string) *CommentStatement + func (node *CommentStatement) Accept(visitor Visitor) interface{} + func (node *CommentStatement) String() string + type ContentStatement struct + LeftStripped bool + Original string + RightStripped bool + Value string + func NewContentStatement(pos int, line int, val string) *ContentStatement + func (node *ContentStatement) Accept(visitor Visitor) interface{} + func (node *ContentStatement) String() string + type Expression struct + Hash *Hash + Params []Node + Path Node + func NewExpression(pos int, line int) *Expression + func (node *Expression) Accept(visitor Visitor) interface{} + func (node *Expression) Canonical() string + func (node *Expression) FieldPath() *PathExpression + func (node *Expression) HelperName() string + func (node *Expression) LiteralStr() (string, bool) + func (node *Expression) String() string + type Hash struct + Pairs []*HashPair + func NewHash(pos int, line int) *Hash + func (node *Hash) Accept(visitor Visitor) interface{} + func (node *Hash) String() string + type HashPair struct + Key string + Val Node + func NewHashPair(pos int, line int) *HashPair + func (node *HashPair) Accept(visitor Visitor) interface{} + func (node *HashPair) String() string + type Loc struct + Line int + Pos int + func (l Loc) Location() Loc + type MustacheStatement struct + Expression *Expression + Strip *Strip + Unescaped bool + func NewMustacheStatement(pos int, line int, unescaped bool) *MustacheStatement + func (node *MustacheStatement) Accept(visitor Visitor) interface{} + func (node *MustacheStatement) String() string + type Node interface + Accept func(Visitor) interface{} + Location func() Loc + String func() string + Type func() NodeType + type NodeType int + const NodeBlock + const NodeBoolean + const NodeComment + const NodeContent + const NodeExpression + const NodeHash + const NodeHashPair + const NodeMustache + const NodeNumber + const NodePartial + const NodePath + const NodeProgram + const NodeString + const NodeSubExpression + func (t NodeType) Type() NodeType + type NumberLiteral struct + IsInt bool + Original string + Value float64 + func NewNumberLiteral(pos int, line int, val float64, isInt bool, original string) *NumberLiteral + func (node *NumberLiteral) Accept(visitor Visitor) interface{} + func (node *NumberLiteral) Canonical() string + func (node *NumberLiteral) Number() interface{} + func (node *NumberLiteral) String() string + type PartialStatement struct + Hash *Hash + Indent string + Name Node + Params []Node + Strip *Strip + func NewPartialStatement(pos int, line int) *PartialStatement + func (node *PartialStatement) Accept(visitor Visitor) interface{} + func (node *PartialStatement) String() string + type PathExpression struct + Data bool + Depth int + Original string + Parts []string + Scoped bool + func NewPathExpression(pos int, line int, data bool) *PathExpression + func (node *PathExpression) Accept(visitor Visitor) interface{} + func (node *PathExpression) IsDataRoot() bool + func (node *PathExpression) Part(part string) + func (node *PathExpression) Sep(separator string) + func (node *PathExpression) String() string + type Program struct + BlockParams []string + Body []Node + Chained bool + Strip *Strip + func NewProgram(pos int, line int) *Program + func (node *Program) Accept(visitor Visitor) interface{} + func (node *Program) AddStatement(statement Node) + func (node *Program) String() string + type StringLiteral struct + Value string + func NewStringLiteral(pos int, line int, val string) *StringLiteral + func (node *StringLiteral) Accept(visitor Visitor) interface{} + func (node *StringLiteral) String() string + type Strip struct + Close bool + CloseStandalone bool + InlineStandalone bool + Open bool + OpenStandalone bool + func NewStrip(openStr, closeStr string) *Strip + func NewStripForStr(str string) *Strip + func (s *Strip) String() string + type SubExpression struct + Expression *Expression + func NewSubExpression(pos int, line int) *SubExpression + func (node *SubExpression) Accept(visitor Visitor) interface{} + func (node *SubExpression) String() string + type Visitor interface + VisitBlock func(*BlockStatement) interface{} + VisitBoolean func(*BooleanLiteral) interface{} + VisitComment func(*CommentStatement) interface{} + VisitContent func(*ContentStatement) interface{} + VisitExpression func(*Expression) interface{} + VisitHash func(*Hash) interface{} + VisitHashPair func(*HashPair) interface{} + VisitMustache func(*MustacheStatement) interface{} + VisitNumber func(*NumberLiteral) interface{} + VisitPartial func(*PartialStatement) interface{} + VisitPath func(*PathExpression) interface{} + VisitProgram func(*Program) interface{} + VisitString func(*StringLiteral) interface{} + VisitSubExpression func(*SubExpression) interface{} Incompatible versions in this module v2.0.2+incompatible Mar 22, 2018 v2.0.1+incompatible Jun 1, 2016 v2.0.0+incompatible May 1, 2016