sortslice

package module
v0.0.0-...-66311a4 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2019 License: BSD-3-Clause Imports: 7 Imported by: 0

README

sortslice

Warn if user provides a non-slice to sort.Slice

Attribution

Original complaint by @empijei, idea for analyzer by @matloob, code very much inspired by @matloob's example analyser cmpequal.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name:     "sortslice",
	Doc:      "Check arg type of sort.Slice",
	Requires: []*analysis.Analyzer{inspect.Analyzer},
	Run:      run,
}

Analyzer performs analysis of calls to sort.Slice, reporting an error if the argument is not a slice.

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