Documentation ¶
Index ¶
- func AssignFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)
- func BreakFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)
- func CaptureFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)
- func CaseFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)
- func CommentFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)
- func ContinueFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)
- func ElseFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)
- func ElseIfFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)
- func EndCaptureFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)
- func EndCaseFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)
- func EndCommentFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)
- func EndForFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)
- func EndIfFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)
- func EndRawFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)
- func EndUnlessFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)
- func ForFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)
- func IfFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)
- func IncludeFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)
- func RawFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)
- func UnlessFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)
- func WhenFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)
- type Assign
- type Break
- type Capture
- type Case
- type CaseSibling
- type Comment
- type Common
- type Continue
- type Else
- type ElseIf
- type End
- type For
- type If
- type IfSibling
- type Include
- type LoopState
- type Raw
- type Unless
- type When
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssignFactory ¶
Creates an assign tag
func BreakFactory ¶
Creates a break tag
func CaptureFactory ¶
Creates an assign tag
func CaseFactory ¶
func CommentFactory ¶
Special handling to just quickly skip over it all
func ContinueFactory ¶
Creates a continue tag
func ElseFactory ¶
func ElseIfFactory ¶
func EndCaptureFactory ¶
func EndCaseFactory ¶
func EndCommentFactory ¶
func EndForFactory ¶
func EndIfFactory ¶
func EndRawFactory ¶
func EndUnlessFactory ¶
func ForFactory ¶
func IncludeFactory ¶
Creates an include tag
func RawFactory ¶
Special handling to just quickly skip over it all
func UnlessFactory ¶
func WhenFactory ¶
Types ¶
type Assign ¶
type Assign struct {
// contains filtered or unexported fields
}
type Capture ¶
type Capture struct { *Common // contains filtered or unexported fields }
type CaseSibling ¶
type Comment ¶
type Comment struct { }
Comment tag is a special tag in that, while it looks like a container tag, we treat it as an end tag and just move the parser all the way past the end tag. A
type Else ¶
type Else struct { *Common // contains filtered or unexported fields }
func (*Else) AddLeftValue ¶
func (*Else) Condition ¶
func (e *Else) Condition() core.Verifiable
type ElseIf ¶
type ElseIf struct { *Common // contains filtered or unexported fields }
func (*ElseIf) Condition ¶
func (e *ElseIf) Condition() core.Verifiable
type End ¶
type End struct {
// contains filtered or unexported fields
}
a generic end tag
type For ¶
type For struct { *Common // contains filtered or unexported fields }
type If ¶
type If struct { *Common // contains filtered or unexported fields }
func (*If) Condition ¶
func (i *If) Condition() core.Verifiable
type Include ¶
type Include struct {
// contains filtered or unexported fields
}
type Raw ¶
type Raw struct {
// contains filtered or unexported fields
}
Raw tag is a special tag. Like comment it'll forward the parser to past its own end.
type Unless ¶
type Unless struct { *Common // contains filtered or unexported fields }
type When ¶
type When struct { *Common // contains filtered or unexported fields }
func (*When) AddLeftValue ¶
func (*When) Condition ¶
func (w *When) Condition() core.Verifiable
Click to show internal directories.
Click to hide internal directories.