analyzer

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PackageInfo

type PackageInfo struct {
	ImportPath string
	Dir        string
	Layer      string
	Imports    []string
}

PackageInfo describes a Go package in the project.

type Project

type Project struct {
	Root     string
	Module   string
	Packages []PackageInfo
}

Project holds parsed project structure.

func LoadProject

func LoadProject(root string) (*Project, error)

LoadProject parses go.mod module and Go files under internal/.

func (*Project) ImportGraph

func (p *Project) ImportGraph() map[string][]string

ImportGraph returns adjacency list module -> imported project packages.

Jump to

Keyboard shortcuts

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