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.30.0 (latest)
- Published
- Feb 10, 2025
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 3 hours ago –
Tools for package owners.