Documentation
¶
Overview ¶
Package format provides unified Go formatting. It combines: import fixing, line shortening, and gofumpt-style rules.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
Formatter performs unified Go formatting.
type Options ¶
type Options struct {
LineLength int // target maximum line length (default: 100)
TabWidth int // tab display width (default: 4)
ModulePath string // module path for import grouping
LocalPrefixes []string // local import prefixes for grouping
Fast bool // skip sibling scan for import resolution
Resolve bool // load full type info for third-party import resolution
}
Options configures the formatter.
Click to show internal directories.
Click to hide internal directories.