Documentation
¶
Overview ¶
Package golang parses Go source via the stdlib go/parser+go/ast. This is the same idiom CKG uses — for Go specifically, stdlib is more accurate than tree-sitter (full type information available; resolves generics; canonical line/column numbers via go/token).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct{}
Parser is the Go-language SymbolSpan extractor.
func New ¶
func New() *Parser
New constructs a stateless parser. Parsers are cheap; instantiating one per file is fine.
Click to show internal directories.
Click to hide internal directories.