x/tools/go/analysis/passes/fieldalignment: "struct with X pointer bytes could be Y" linting errors for (what appears to be) aligned structs #45541
Labels
Analysis
Issues related to static analysis (vet, x/tools/go/analysis)
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Example structs:
I first encountered the linting errors via CI Docker container (govet
fieldalignment
golangci-lint linter), then reproduced by enablingfieldalignment
vscode Go plugin analyzer.fieldalignment
linterWhat did you expect to see?
No linting errors.
What did you see instead?
These linting errors for two variations of the struct:
The text was updated successfully, but these errors were encountered: