Documentation
¶
Overview ¶
Package analyzer implements the syntax- and type-level repomap commands: overview, package, symbol, struct and deps. It operates over packages loaded by the loader package and returns models types.
Index ¶
- func DepsGraph(ctx context.Context, l *loader.Loader, path string) (models.Deps, error)
- func LookupSymbol(ctx context.Context, l *loader.Loader, name string, detail SymbolDetail) (models.Symbol, error)
- func Overview(ctx context.Context, l *loader.Loader) (models.Overview, error)
- func PackageInfo(ctx context.Context, l *loader.Loader, path string) (models.Package, error)
- func StructShape(ctx context.Context, l *loader.Loader, name string) (models.Struct, error)
- type SymbolDetail
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DepsGraph ¶
DepsGraph returns the intra-module dependency graph reachable from a root package, along with the maximum dependency depth.
func LookupSymbol ¶
func LookupSymbol(ctx context.Context, l *loader.Loader, name string, detail SymbolDetail) (models.Symbol, error)
LookupSymbol locates a symbol by name and returns the requested detail. The name may be bare ("ValidateToken"), package-qualified ("models.FabricStatus"), or a method ("Type.Method").
func PackageInfo ¶
PackageInfo returns information about a single package, addressed by import path or by directory (e.g. "./internal/auth").
Types ¶
Click to show internal directories.
Click to hide internal directories.