Help us shape the future of Go! Take the 2026 Go Developer Survey

extract

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorsResult

type ErrorsResult struct {
	Patterns      map[string]int `json:"patterns"`
	DominantStyle string         `json:"dominant_style"`
}

type LayeringResult

type LayeringResult struct {
	Modules int                 `json:"modules"`
	Edges   int                 `json:"edges"`
	Graph   map[string][]string `json:"graph"`
	FanIn   []leda.FanOutEntry  `json:"fan_in"`
	FanOut  []leda.FanOutEntry  `json:"fan_out"`
}

type NamingResult

type NamingResult struct {
	Files           map[string]int `json:"files"`
	Directories     map[string]int `json:"directories"`
	ExportedSymbols map[string]int `json:"exported_symbols"`
	Packages        map[string]int `json:"packages,omitempty"`
}

type Result

type Result struct {
	Language          string         `json:"language"`
	LanguagesDetected map[string]int `json:"languages_detected"`
	Extractor         string         `json:"extractor"`
	FileCount         int            `json:"file_count"`
	TokenEstimate     int            `json:"token_estimate"`
	Naming            NamingResult   `json:"naming"`
	Layering          LayeringResult `json:"layering"`
	Errors            ErrorsResult   `json:"errors"`
	Testing           TestingResult  `json:"testing"`
	Tooling           ToolingResult  `json:"tooling"`
}

func Run

func Run(rootDir string, g *leda.Graph, reg *parser.Registry) (*Result, error)

type TestingResult

type TestingResult struct {
	Framework     string   `json:"framework"`
	TestFileCount int      `json:"test_file_count"`
	TestNaming    string   `json:"test_naming"`
	Placement     string   `json:"placement"`
	Helpers       []string `json:"helpers"`
	MockLibraries []string `json:"mock_libraries"`
	ConfigFiles   []string `json:"config_files"`
}

type ToolingResult

type ToolingResult struct {
	Build              []string `json:"build"`
	Lint               []string `json:"lint"`
	Format             []string `json:"format"`
	CI                 []string `json:"ci"`
	DependencyManifest string   `json:"dependency_manifest"`
}

Jump to

Keyboard shortcuts

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