Standard Library

GoSort

Go stdlib package — sort. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.Find()Neutral
#
Signature
Find(n int, cmp func(int) int) (int, bool)

Find uses binary search to find and return the smallest index i in [0, n)

.Float64Slice.Len()Neutral
#
Signature
Float64Slice.Len() int

Float64Slice.Len function.

.Float64Slice.Less()Neutral
#
Signature
Float64Slice.Less(i int, j int) bool

Less reports whether x[i] should be ordered before x[j], as required by the sort Interface.

.Float64Slice.Search()Neutral
#
Signature
Float64Slice.Search(x float64) int

Search returns the result of applying SearchFloat64s to the receiver and x.

.Float64Slice.Sort()Neutral
#
Signature
Float64Slice.Sort()

Sort is a convenience method: x.Sort() calls Sort(x).

.Float64Slice.Swap()Neutral
#
Signature
Float64Slice.Swap(i int, j int)

Float64Slice.Swap function.

.Float64s()Neutral
#
Signature
Float64s(x []float64)

Float64s sorts a slice of float64s in increasing order.

.Float64sAreSorted()Neutral
#
Signature
Float64sAreSorted(x []float64) bool

Float64sAreSorted reports whether the slice x is sorted in increasing order,

.IntSlice.Len()Neutral
#
Signature
IntSlice.Len() int

IntSlice.Len function.

.IntSlice.Less()Neutral
#
Signature
IntSlice.Less(i int, j int) bool

IntSlice.Less function.

Fully-Qualified Names

FQNField
sortfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import ...  # sort