package sortslice

import "golang.org/x/tools/go/analysis/passes/sortslice"

Package sortslice defines an Analyzer that checks for calls to sort.Slice that do not use a slice type as first argument.

Index

Constants

const Doc = "" /* 164 byte string literal not displayed */

Variables

var Analyzer = &analysis.Analyzer{
	Name:     "sortslice",
	Doc:      Doc,
	URL:      "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/sortslice",
	Requires: []*analysis.Analyzer{inspect.Analyzer},
	Run:      run,
}

Source Files

analyzer.go

Version
v0.9.3
Published
Jun 1, 2023
Platform
js/wasm
Imports
10 packages
Last checked
5 hours ago

Tools for package owners.