Go stdlib package — debug/gosym. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.LineTable.LineToPC()NeutralLineTable.LineToPC(line int, maxpc uint64) uint64
LineToPC returns the program counter for the given line number,
.LineTable.PCToLine()NeutralLineTable.PCToLine(pc uint64) int
PCToLine returns the line number for the given program counter.
.NewLineTable()NeutralNewLineTable(data []byte, text uint64) *LineTable
NewLineTable returns a new PC/line table
.NewTable()NeutralNewTable(symtab []byte, pcln *LineTable) (*Table, error)
NewTable decodes the Go symbol table (the ".gosymtab" section in ELF),
.Sym.BaseName()NeutralSym.BaseName() string
BaseName returns the symbol name without the package or receiver name.
.Sym.PackageName()NeutralSym.PackageName() string
PackageName returns the package part of the symbol name,
.Sym.ReceiverName()NeutralSym.ReceiverName() string
ReceiverName returns the receiver type name of this symbol,
.Sym.Static()NeutralSym.Static() bool
Static reports whether this symbol is static (not visible outside its file).
.Table.LineToPC()NeutralTable.LineToPC(file string, line int) (uint64, *Func, error)
LineToPC looks up the first program counter on the given line in
| FQN | Field | |
|---|---|---|
| debug/gosym | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
// standard library — no go.mod entry required
from codepathfinder.go_rule import ... # debug/gosym