graph

package
v0.4.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DependencyGraph

type DependencyGraph struct {
	Main     *Module
	Modules  map[string]*Module
	Packages map[string]*Package
	Edges    map[string][]string
}

func Load

func Load(dir string) (*DependencyGraph, error)

func NewDependencyGraph

func NewDependencyGraph() *DependencyGraph

func (*DependencyGraph) Checksum

func (g *DependencyGraph) Checksum() string

Checksum returns a short deterministic SHA-256 digest of the dependency graph. The digest covers module paths, versions, package import paths, capability names, and edge targets — all sorted for stability across runs.

func (*DependencyGraph) ReverseEdges

func (g *DependencyGraph) ReverseEdges() map[string][]string

type Module

type Module struct {
	Path     string
	Version  string
	Dir      string
	Main     bool
	Indirect bool
	Packages []*Package
}

type Package

type Package struct {
	ImportPath   string
	Name         string
	Module       *Module
	Dir          string
	GoFiles      []string
	Imports      []string
	Deps         []string
	Capabilities capability.CapabilitySet
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL