Documentation
¶
Overview ¶
Package graph provides functionality for building and analyzing Go dependency graphs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Graph ¶
type Graph struct {
// contains filtered or unexported fields
}
Graph represents a complete dependency graph for a Go project.
func New ¶
New creates a new graph of dependencies starting from the root directory. maxGoroutines is the maximum number of goroutines to use for parsing in parallel.
type Node ¶
type Node struct {
ImportPath string
Name string
PkgType PkgTypeEnum
}
Node represents a package node in the dependency graph.
type PkgTypeEnum ¶
type PkgTypeEnum string
PkgTypeEnum represents the type of a Go package (standard library, external, local, or error).
const ( PkgTypeStdLib PkgTypeEnum = "std" // Standard library package PkgTypeExtLib PkgTypeEnum = "ext" // External package (from go.mod) PkgTypeLocal PkgTypeEnum = "loc" // Local project package PkgTypeErr PkgTypeEnum = "err" // Package with import errors )
Package type constants.
Click to show internal directories.
Click to hide internal directories.