Documentation
¶
Overview ¶
Package tidyall runs go mod tidy for every module and pins each go directive to the lowest version that mingo computes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoModule = errors.New("no go.mod found")
ErrNoModule is returned when no go.mod is found under the root.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Root is the repository root.
Root string
// DryRun prints planned changes without writing.
DryRun bool
// SkipDirs skips modules under these root-relative directories.
SkipDirs []string
// MinGoVersion pins the go directive to at least this version (e.g. "1.24.0").
// Empty follows the mingo result.
MinGoVersion string
}
Config holds tidy-all settings.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
go-tidy-all
command
Command go-tidy-all runs go mod tidy for every module and pins each go directive to the lowest version that mingo computes.
|
Command go-tidy-all runs go mod tidy for every module and pins each go directive to the lowest version that mingo computes. |
Click to show internal directories.
Click to hide internal directories.