Documentation
¶
Overview ¶
Package parser extracts symbols from Go source files using go/packages for type-checked parsing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileResult ¶
FileResult holds parsed symbols for a single file.
type ParseResult ¶
type ParseResult struct {
Files []FileResult
}
ParseResult holds results for all parsed files.
type Symbol ¶
type Symbol struct {
Name string // identifier name
Kind string // "func", "method", "struct", "interface", "const", "var"
Package string // package name (e.g., "foo")
Receiver string // for methods only (e.g., "*MyStruct")
Signature string // full signature line
DocComment string // doc comment text
Body string // source body text
LineStart int // first line number
LineEnd int // last line number
FilePath string // absolute file path
}
Symbol represents a single Go declaration extracted from source.
Click to show internal directories.
Click to hide internal directories.