tools: golang.org/x/tools/go/analysis/passes/fieldalignment Index | Files

package fieldalignment

import "golang.org/x/tools/go/analysis/passes/fieldalignment"

Package fieldalignment defines an Analyzer that detects structs that would take less memory if their fields were sorted.

Index

Package Files

fieldalignment.go

Constants

const Doc = "" /* 197 byte string literal not displayed */

Variables

var Analyzer = &analysis.Analyzer{
    Name:     "fieldalignment",
    Doc:      Doc,
    Requires: []*analysis.Analyzer{inspect.Analyzer},
    Run:      run,
}

Package fieldalignment imports 10 packages (graph) and is imported by 2 packages. Updated 2021-01-21. Refresh now. Tools for package owners.