Documentation
¶
Overview ¶
Package layout provides a go/analysis analyzer enforcing the cross-package correspondence of the gomatic three-tier CLI layout: every internal/app/commands/<cmd> package has a matching internal/domain/<cmd> package, and vice versa. Each package checks its own counterpart on the filesystem, so the two directions are reported without duplication.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{
Name: "layout",
Doc: "reports three-tier packages whose corresponding command or domain package is missing",
Run: run,
}
Analyzer reports command or domain packages whose counterpart is missing.
View Source
var Registration = goyze.Registration{ Name: "layout", Categories: []goyze.Category{"structure"}, URL: "https://docs.gomatic.dev/yze/layout", Analyzer: Analyzer, }
Registration declares this analyzer to the yze framework.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
yze-go-layout
command
Command yze-go-layout runs the layout analyzer as a standalone go/analysis checker (text and -json output, and as a `go vet -vettool`).
|
Command yze-go-layout runs the layout analyzer as a standalone go/analysis checker (text and -json output, and as a `go vet -vettool`). |
Click to show internal directories.
Click to hide internal directories.