func sort.Search
27 uses
sort (current package)
search.go#L59: func Search(n int, f func(int) bool) int {
search.go#L84: return Search(len(a), func(i int) bool { return a[i] >= x })
search.go#L93: return Search(len(a), func(i int) bool { return a[i] >= x })
search.go#L102: return Search(len(a), func(i int) bool { return a[i] >= x })
archive/zip
reader.go#L742: i := sort.Search(len(files), func(i int) bool {
reader.go#L757: i := sort.Search(len(files), func(i int) bool {
reader.go#L761: j := sort.Search(len(files), func(j int) bool {
github.com/go-git/gcfg/token
position.go#L240: return sort.Search(len(a), func(i int) bool { return a[i].Offset > x }) - 1
position.go#L366: return sort.Search(len(a), func(i int) bool { return a[i].base > x }) - 1
github.com/go-redis/redis/v8
cluster.go#L594: i := sort.Search(len(c.slots), func(i int) bool {
github.com/golang-migrate/migrate/v4/source
migration.go#L142: return sort.Search(len(s), func(i int) bool { return s[i] >= x })
go.opentelemetry.io/otel/label
set.go#L127: idx := sort.Search(vlen, func(idx int) bool {
go/token
position.go#L294: return sort.Search(len(a), func(i int) bool { return a[i].Offset > x }) - 1
position.go#L470: return sort.Search(len(a), func(i int) bool { return a[i].base > x }) - 1
golang.org/x/net/trace
trace.go#L523: i := sort.Search(n, func(i int) bool { return trl[i].Start.After(tr.Start) })
golang.org/x/sys/unix
syscall_unix.go#L56: i := sort.Search(len(errorList), func(i int) bool {
syscall_unix.go#L67: i := sort.Search(len(signalList), func(i int) bool {
golang.org/x/text/internal/language
lookup.go#L30: return sort.Search(len(imap), func(i int) bool {
lookup.go#L55: k := sort.Search(len(AliasMap), func(i int) bool {
lookup.go#L251: i := sort.Search(len(buf), func(i int) bool {
lookup.go#L268: k := sort.Search(len(m), func(i int) bool {
golang.org/x/text/internal/language/compact
compact.go#L31: i := sort.Search(len(coreTags), func(i int) bool {
golang.org/x/text/internal/tag
tag.go#L28: index := sort.Search(len(s)/4, func(i int) bool {
google.golang.org/grpc/internal/channelz
funcs.go#L515: idx := sort.Search(len(ids), func(i int) bool { return ids[i] >= id })
funcs.go#L562: idx := sort.Search(len(ids), func(i int) bool { return ids[i] >= id })
funcs.go#L615: idx := sort.Search(len(ids), func(i int) bool { return ids[i] >= startID })
net/http
server.go#L2483: i := sort.Search(n, func(i int) bool {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |