prealloc

package
v0.0.0-...-503c688 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Name = "prealloc"

Name is the name of the analyzer.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: Name,
	Doc:  "Finds slice declarations that could potentially be preallocated",
	Run:  run,
}

Analyzer is the analyzer struct of prealloc.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	Simple     bool
	RangeLoops bool `mapstructure:"range-loops"`
	ForLoops   bool `mapstructure:"range-loops"`
}

Settings is the settings for preallocation.

Jump to

Keyboard shortcuts

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