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 ¶ added in v0.4.0
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 ¶ added in v0.4.0
func (t *Template) ExtractComments()
func (*Template) GetComments ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.