prealloc

package
v1.1.0-beta.0...-a878e1f Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 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