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

Package Files

analyzer.go

Constants

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

Variables

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

Package sortslice imports 9 packages (graph).

Version v0.1.8 (latest) | Published Dec 2, 2021 | Platform: linux/amd64 | Updated 3 weeks ago

.
Tools for package owners.