Documentation
¶
Overview ¶
Package align runs the upstream fieldalignment analyzer over a Target and returns the suggested struct reorderings as data (no rendering).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aligner ¶
type Aligner struct{}
Aligner implements common.Aligner.
func (*Aligner) Findings ¶
func (a *Aligner) Findings(t common.Target, patterns []string, keepTags bool) ([]common.Finding, error)
Findings runs the analyzer over t and returns one Finding per suggested reordering, filtered by patterns (nil = all). When keepTags is false, field tags are stripped from both original and proposed text.
Click to show internal directories.
Click to hide internal directories.