Documentation
¶
Index ¶
Constants ¶
View Source
const (
NVariable
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Inspector ¶
type Inspector struct {
// contains filtered or unexported fields
}
type Keyword ¶
type Keyword struct {
Name string
IDToken etype.Token
SingularPos int
PluralPos int
ContextPos int
DomainPos int
}
func DefaultKeywords ¶
func (*Keyword) MaxPosition ¶
type Template ¶
type Template struct {
Filename string
Trees map[string]*parse.Tree
Inspector *Inspector
// GoFilePos holds the position from which .go file the template originates
GoFilePos token.Position
// OffsetLookup holds the first position of all line starts.
OffsetLookup []token.Position
// Comments holds the comments of each line number
Comments map[int][]string
}
func ParseString ¶
func (*Template) ExtractComments ¶
func (t *Template) ExtractComments()
Click to show internal directories.
Click to hide internal directories.