- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for SortFunc (0.13 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)