- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for SortFunc (0.16 sec)
-
istioctl/pkg/waypoint/waypoint.go
} writer := cmd.OutOrStdout() w := new(tabwriter.Writer).Init(writer, 0, 8, 5, ' ', 0) if len(gws.Items) == 0 { fmt.Fprintln(writer, "No waypoints found.") return nil } slices.SortFunc(gws.Items, func(i, j gateway.Gateway) int { if r := cmp.Compare(i.Namespace, j.Namespace); r != 0 { return r } return cmp.Compare(i.Name, j.Name) }) filteredGws := make([]gateway.Gateway, 0)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 19.6K bytes - Viewed (0) -
internal/bucket/lifecycle/lifecycle.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu May 23 01:12:48 UTC 2024 - 17.9K bytes - Viewed (0) -
istioctl/pkg/tag/tag.go
tag: tagName, } rawTags[key] = tagDesc } for k := range rawTags { if k.tag != "" { delete(rawTags, uniqTag{revision: k.revision}) } } tags := slices.SortFunc(maps.Values(rawTags), func(a, b tagDescription) int { if r := cmp.Compare(a.Revision, b.Revision); r != 0 { return r } return cmp.Compare(a.Tag, b.Tag) }) switch outputFormat {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Jul 22 15:40:30 UTC 2024 - 16.5K bytes - Viewed (0) -
api/go1.21.txt
pkg slices, func Reverse[$0 interface{ ~[]$1 }, $1 interface{}]($0) #58565 pkg slices, func Sort[$0 interface{ ~[]$1 }, $1 cmp.Ordered]($0) #60091 pkg slices, func SortFunc[$0 interface{ ~[]$1 }, $1 interface{}]($0, func($1, $1) int) #60091 pkg slices, func SortStableFunc[$0 interface{ ~[]$1 }, $1 interface{}]($0, func($1, $1) int) #60091
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Aug 07 09:39:17 UTC 2023 - 25.6K bytes - Viewed (0) -
src/archive/zip/reader.go
} else { entry := fileListEntry{ name: dir, file: nil, isDir: true, } r.fileList = append(r.fileList, entry) } } } slices.SortFunc(r.fileList, func(a, b fileListEntry) int { return fileEntryCompare(a.name, b.name) }) }) } func fileEntryCompare(x, y string) int { xdir, xelem, _ := split(x) ydir, yelem, _ := split(y)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Sat Aug 03 01:05:29 UTC 2024 - 28.1K bytes - Viewed (0)