structslop

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 8 Imported by: 3

README

structslop

Build Status

Package structslop defines an Analyzer that checks struct can be re-arranged fields to get optimal struct size.

Installation

go get github.com/orijtech/structslop/cmd/structslop

Development

Go 1.15+

Running test

Add test case to testdata/src/struct directory, then run:

go test

Contributing

TODO

Documentation

Index

Constants

View Source
const Doc = `check for structs that can be rearrange fields to provide for maximum space/allocation efficiency`

Variables

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

Analyzer describes struct slop analysis function detector.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd
structslop command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL