toolsgolang.org/x/tools/go/analysis/passes/fieldalignment Index | Files | Directories

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 = "" /* 1054 byte string literal not displayed */

Variables

var Analyzer = &analysis.Analyzer{
	Name:     "fieldalignment",
	Doc:      Doc,
	URL:      "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/fieldalignment",
	Requires: []*analysis.Analyzer{inspect.Analyzer},
	Run:      run,
}

Source Files

fieldalignment.go

Directories

PathSynopsis
go/analysis/passes/fieldalignment/cmd
go/analysis/passes/fieldalignment/cmd/fieldalignment
Version
v0.9.3
Published
Jun 1, 2023
Platform
js/wasm
Imports
10 packages
Last checked
5 hours ago

Tools for package owners.