- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for SliceStable (0.05 seconds)
-
api/go1.8.txt
pkg runtime, type MemStats struct, NumForcedGC uint32 pkg sort, func Slice(interface{}, func(int, int) bool) pkg sort, func SliceIsSorted(interface{}, func(int, int) bool) bool pkg sort, func SliceStable(interface{}, func(int, int) bool) pkg syscall (linux-arm-cgo), func TimevalToNsec(Timeval) int64 pkg syscall (linux-arm), func TimevalToNsec(Timeval) int64 pkg syscall (openbsd-386), const SYS_KILL = 122
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed Dec 21 05:25:57 GMT 2016 - 16.3K bytes - Click Count (0) -
tests/count_test.go
).Count(&count6).Find(&users).Error; err != nil || count6 != 3 { t.Fatalf("Count should work, but got err %v", err) } expects := []User{{Name: "main"}, {Name: "other"}, {Name: "other"}} sort.SliceStable(users, func(i, j int) bool { return strings.Compare(users[i].Name, users[j].Name) < 0 }) AssertEqual(t, users, expects) var count7 int64
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Sep 08 09:19:22 GMT 2025 - 6.8K bytes - Click Count (0) -
callbacks.go
return i } } return -1 } func sortCallbacks(cs []*callback) (fns []func(*DB), err error) { var ( names, sorted []string sortCallback func(*callback) error ) sort.SliceStable(cs, func(i, j int) bool { if cs[j].before == "*" && cs[i].before != "*" { return true } if cs[j].after == "*" && cs[i].after != "*" { return true } return false })
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:26:07 GMT 2026 - 8.8K bytes - Click Count (0) -
cmd/erasure-object.go
// two delete markers on top of any object. To avoid this situation, // we will sort deletions to execute existing deletion first, // then add only one delete marker if requested sort.SliceStable(fivs.Versions, func(i, j int) bool { return !fivs.Versions[i].Deleted }) if idx := slices.IndexFunc(fivs.Versions, func(fi FileInfo) bool { return fi.Deleted }); idx > -1 {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Oct 24 04:05:31 GMT 2025 - 80.4K bytes - Click Count (0)