slicedirect

package
v4.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: GPL-3.0 Imports: 6 Imported by: 1

Documentation

Overview

Package slicedirect implements a static analyzer to ensure that code does not contain applications of [:] on expressions which are already slices.

Index

Constants

View Source
const Doc = "Tool to detect unnecessary slice-to-slice conversion by applying [:] to a slice expression."

Doc explaining the tool.

Variables

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

Analyzer runs static analysis.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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