Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Suggestions ¶
Types ¶
type Printer ¶
type Printer struct { DefaultProps RenderProperties HighlightedProps RenderProperties LineNumberFormat func(n int, all int) string }
func (*Printer) RenderFunc ¶
func (p *Printer) RenderFunc(t *token.Token, highlighted bool) RenderFunc
type QueryResult ¶
type QueryResult struct { Nodes []ast.Node TokensMap map[token.Position]*token.Token ParentNodeMap map[token.Position]ast.Node }
func QueryTokens ¶
func QueryTokens(file *ast.File, path string) QueryResult
type RenderFunc ¶
func ColorRenderFunc ¶
func ColorRenderFunc(color *color.Color) RenderFunc
func EmptyRenderFunc ¶
func EmptyRenderFunc() RenderFunc
type RenderProperties ¶
type RenderProperties struct { MapKey RenderFunc Anchor RenderFunc Alias RenderFunc Bool RenderFunc String RenderFunc Number RenderFunc Null RenderFunc Indicator RenderFunc }
func (RenderProperties) RenderFunc ¶
func (p RenderProperties) RenderFunc(t *token.Token) RenderFunc
Click to show internal directories.
Click to hide internal directories.