Versions in this module Expand all Collapse all v0 v0.5.0 Nov 8, 2026 Changes in this version + const ConfExact + const ConfExtracted + const ConfInferred + const DefaultExplainBudget + const DefaultImpactBudget + const DefaultPointerTokens + const DefaultQueryBudget + const EdgeCalls + const EdgeImplements + const EdgeImports + const EdgeInherits + const KindClass + const KindEnum + const KindFile + const KindFunc + const KindInterface + const KindMethod + const KindTrait + const KindType + const SchemaVersion + func ClampTokens(s string, budget int) string + func DiscoverGoModules(root string, files []string) map[string]string + func IsIdentifierQuery(q string) bool + func LangOf(path string) string + func PatternIdent(p string) string + func RenderHubs(hs []Hub, asJSON bool) string + func StaleCheck(root string, g *SymGraph, fileTime time.Time) git.Staleness + func StaleLine(root string, g *SymGraph, fileTime time.Time) string + func Watch(ctx context.Context, o WatchOptions) error + type BodyCache map[string]map[string]string type BuildOptions + Root string + SplitFiles int + type Community struct + Files int + ID int + Label string + Nodes int + Top []string + type Def struct + Decl bool + Doc string + End int + Kind string + Line int + Methods []string + Name string + Qual string + Recv string + Sig string + Vis string + type EdgeRef struct + Conf string + From string + Kind string + Score float64 + To string + type ExtractOptions struct + IncludeTests bool + MaxFileBytes int + MaxParseBytes int + MemoryBudget int64 + ParseTimeout time.Duration + func OptionsFromEnv() ExtractOptions + type FileGroup struct + File string + Rank int + Score float64 + Symbols []SymLine + type FileSyms struct + Defs []Def + Imports []Import + Lang string + Path string + Pkg string + Refs []Ref + func Extract(root string, files []string, opts ExtractOptions) []*FileSyms + func ExtractFile(path string, src []byte) *FileSyms + func ExtractPath(root, rel string, maxBytes int) *FileSyms + type HTMLGraph struct + Comms []Community + Edges [][5]float64 + Files []string + Kinds []string + Nodes []HTMLNode + Total int + type HTMLNode struct + Comm int + Doc string + End int + File int + Kind string + Line int + Name string + Sig string + type Hit struct + Node int + Score float64 + type Hop struct + Conf string + Forward bool + From string + Kind string + Score float64 + To string + type Hub struct + Community string + In int + Kind string + Loc string + Name string + Out int + Rank float64 + type Import struct + Alias string + Names []string + Spec string type Module + ExportsByRank []string + FilesByRank []string + type NodeRef struct + Community int + Kind string + Loc string + Name string + type Order string + const OrderPath + const OrderRelevance + func DefaultOrder() Order + func ParseOrder(s string) (Order, error) + type PathResult struct + Found bool + From string + Hops []Hop + Note string + To string + Weakest float64 + func (p *PathResult) Render(asJSON bool) string + type Ref struct + From int + Kind string + Name string + Qual string + type ResolveOptions struct + GoModules map[string]string + MaxCandidates int + type Surprise struct + Conf string + From string + FromComm string + Kind string + Score float64 + To string + ToComm string + type SymEdge struct + Conf string + From int + Kind string + Score float64 + Src string + To int + type SymGraph struct + Commit string + Communities []Community + Edges []SymEdge + Nodes []SymNode + Root string + Version string + func BuildSymbols(root string, files []string, eo ExtractOptions) *SymGraph + func LinkSymbols(root string, files []string, fs []*FileSyms, c BodyCache) *SymGraph + func Load(path string) (*SymGraph, error) + func Resolve(files []*FileSyms, opts ResolveOptions) *SymGraph + func (g *SymGraph) AttachBodiesCached(root string, c BodyCache) + func (g *SymGraph) ComputeCommunities() + func (g *SymGraph) Explain(sym string, budget int, asJSON bool) (string, error) + func (g *SymGraph) Find(q string) []int + func (g *SymGraph) FitView(sp viewSpec, budget int, asJSON bool) string + func (g *SymGraph) HTMLData(maxNodes int) *HTMLGraph + func (g *SymGraph) Hubs(n int) []Hub + func (g *SymGraph) Impact(target string, maxDepth, budget int, asJSON bool) (string, error) + func (g *SymGraph) Index() + func (g *SymGraph) Label(i int) string + func (g *SymGraph) Loc(i int) string + func (g *SymGraph) PageRank() []float64 + func (g *SymGraph) Pointer(ident string) string + func (g *SymGraph) Query(q string, budget int, asJSON bool) string + func (g *SymGraph) QueryOrdered(q string, budget int, asJSON bool, order Order) string + func (g *SymGraph) RenderCommunities(asJSON bool) string + func (g *SymGraph) Report() string + func (g *SymGraph) Save(path string) error + func (g *SymGraph) Search(q string, limit int) []Hit + func (g *SymGraph) SearchFiles(q string, limit int) []string + func (g *SymGraph) ShortestPath(a, b string) (*PathResult, error) + func (g *SymGraph) Slice(root, sym string, budget int) (string, error) + func (g *SymGraph) Stamp(root string) + func (g *SymGraph) Surprises(n int) []Surprise + type SymLine struct + Doc string + End int + Kind string + Name string + Score float64 + Sig string + Start int + Tags []string + type SymNode struct + Body string + Community int + Doc string + End int + File string + ID string + Kind string + Lang string + Line int + Name string + Repo string + Sig string + Source string + Vis string + type View struct + Files []FileGroup + Head []string + Notice string + Omitted int + Shown int + Title string + Total int + func (v *View) JSON() string + func (v *View) Render(asJSON bool) string + func (v *View) Text() string + type WatchOptions struct + Debounce time.Duration + Extract ExtractOptions + ForcePoll bool + Ignore []string + Log func(format string, args ...any) + MaxWatches int + Out string + PollInterval time.Duration + Root string v0.4.0 May 7, 2026 v0.3.2 Apr 12, 2026 v0.3.1 Apr 11, 2026 v0.3.0 Apr 10, 2026 v0.2.0 Apr 10, 2026 v0.1.0 Apr 9, 2026 Changes in this version + type BuildOptions struct + MaxDepth int + MaxModules int + type Edge struct + Count int + From string + To string + type Graph struct + func Build(files []*parser.FileInfo, opts BuildOptions) *Graph + func (g *Graph) Edges() []Edge + func (g *Graph) Entrypoints() []string + func (g *Graph) Isolated() []string + func (g *Graph) Module(name string) *Module + func (g *Graph) Modules() []*Module + func (g *Graph) MostDepended() []string + type Module struct + DependedBy []string + DependsOn []string + Exports []string + FileCount int + Files []string + Languages []string + LineCount int + Name string + PrimaryLanguage string + TypeDefs map[string]string