package fieldalignment
import "golang.org/x/tools/go/analysis/passes/fieldalignment"
Package fieldalignment defines an Analyzer that detects structs that would use less memory if their fields were sorted.
Index ¶
Constants ¶
const Doc = "" /* 772 byte string literal not displayed */
Variables ¶
var Analyzer = &analysis.Analyzer{ Name: "fieldalignment", Doc: Doc, Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, }
Source Files ¶
fieldalignment.go
Directories ¶
Path | Synopsis |
---|---|
go/analysis/passes/fieldalignment/cmd | |
go/analysis/passes/fieldalignment/cmd/fieldalignment |
- Version
- v0.1.10
- Published
- Mar 15, 2022
- Platform
- js/wasm
- Imports
- 10 packages
- Last checked
- 5 hours ago –
Tools for package owners.