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

Package Files

fieldalignment.go

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,
}

Directories

PathSynopsis
go/analysis/passes/fieldalignment/cmd
go/analysis/passes/fieldalignment/cmd/fieldalignment

Package fieldalignment imports 10 packages (graph).

Version v0.1.8 (latest) | Published Dec 2, 2021 | Platform: linux/amd64 | Updated 3 weeks ago

.
Tools for package owners.