- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 4,034 for Sort (0.05 sec)
-
src/cmd/compile/internal/types2/example_test.go
} var items []string for obj, uses := range usesByObj { sort.Strings(uses) item := fmt.Sprintf("%s:\n defined at %s\n used at %s", types2.ObjectString(obj, types2.RelativeTo(pkg)), obj.Pos(), strings.Join(uses, ", ")) items = append(items, item) } sort.Strings(items) // sort by line:col, in effect fmt.Println(strings.Join(items, "\n")) fmt.Println()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 28 17:58:07 UTC 2023 - 7.1K bytes - Viewed (0) -
src/cmd/link/internal/ld/inittask.go
continue // already found } q = append(q, s) m[s] = 0 // mark as found } m[x] = ndeps if ndeps == 0 { h.push(ldr, x) } } // Sort edges so we can look them up by edge destination. sort.Slice(edges, func(i, j int) bool { return edges[i].to < edges[j].to }) // Figure out the schedule. sched := ldr.MakeSymbolBuilder(symName)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 30 20:09:45 UTC 2024 - 6.2K bytes - Viewed (0) -
pkg/test/csrctrl/authority/policies.go
} else { unrecognized = append(unrecognized, usage) } } var sorted sortedExtKeyUsage for eku := range extKeyUsages { sorted = append(sorted, eku) } sort.Sort(sorted) if len(unrecognized) > 0 { return 0, nil, fmt.Errorf("unrecognized usage values: %q", unrecognized) } return keyUsage, []x509.ExtKeyUsage(sorted), nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Aug 03 17:06:22 UTC 2022 - 4.5K bytes - Viewed (0) -
pkg/util/smallset/smallset.go
if len(items) == 1 { return Set[T]{items: items} } slices.Sort(items) items = slices.FilterDuplicatesPresorted(items) return Set[T]{items: items} } // CopyAndInsert builds a *new* with all the current items plus new items func (s Set[T]) CopyAndInsert(items ...T) Set[T] { slices.Sort(items) // This is basically the 'merge' part of merge sort. a := s.items b := items nl := make([]T, 0, len(a)+len(b))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 10 23:33:56 UTC 2024 - 3.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/text/internal/language/compact/compact.go
package compact // import "golang.org/x/text/internal/language/compact" import ( "sort" "strings" "golang.org/x/text/internal/language" ) // ID is an integer identifying a single tag. type ID uint16 func getCoreIndex(t language.Tag) (id ID, ok bool) { cci, ok := language.GetCompactCore(t) if !ok { return 0, false } i := sort.Search(len(coreTags), func(i int) bool { return cci <= coreTags[i] })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 1.7K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_fuzz_parallel.txt
module fuzz_parallel go 1.17 -- fuzz_parallel_test.go -- package fuzz_parallel import ( "sort" "sync" "testing" ) func FuzzSeed(f *testing.F) { for _, v := range [][]byte{{'a'}, {'b'}, {'c'}} { f.Add(v) } var mu sync.Mutex var before, after []byte f.Cleanup(func() { sort.Slice(after, func(i, j int) bool { return after[i] < after[j] }) got := string(before) + string(after)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 16 16:53:11 UTC 2023 - 1.6K bytes - Viewed (0) -
pkg/ctrlz/topics/scopes.go
// See the License for the specific language governing permissions and // limitations under the License. package topics import ( "encoding/json" "fmt" "net/http" "sort" "github.com/gorilla/mux" "istio.io/istio/pkg/ctrlz/fw" "istio.io/istio/pkg/ctrlz/topics/assets" "istio.io/istio/pkg/log" ) type scopeTopic struct{} type scopeInfo struct {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 14:06:41 UTC 2023 - 4K bytes - Viewed (0) -
src/net/dnsclient.go
if i > 0 { addrs[0], addrs[i] = addrs[i], addrs[0] } break } } sum -= int(addrs[0].Weight) addrs = addrs[1:] } } // sort reorders SRV records as specified in RFC 2782. func (addrs byPriorityWeight) sort() { slices.SortFunc(addrs, func(a, b *SRV) int { if r := cmp.Compare(a.Priority, b.Priority); r != 0 { return r } return cmp.Compare(a.Weight, b.Weight) })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:53 UTC 2024 - 5.7K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/schedule.go
for i, v := range order { if v.Op == OpNilCheck { if start == -1 { start = i } } else { if start != -1 { sort.Sort(bySourcePos(order[start:i])) start = -1 } } } if start != -1 { sort.Sort(bySourcePos(order[start:])) } } return order } // isFlagOp reports if v is an OP with the flag type. func (v *Value) isFlagOp() bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 08 15:53:17 UTC 2024 - 16.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unusedresult/unusedresult.go
// fmt.Sprintf doesn't mean you need to use the result of every // function that returns a formatted string: it may have other results // and effects. import ( _ "embed" "go/ast" "go/token" "go/types" "sort" "strings" "golang.org/x/tools/go/analysis" "golang.org/x/tools/go/analysis/passes/inspect" "golang.org/x/tools/go/analysis/passes/internal/analysisutil" "golang.org/x/tools/go/ast/astutil"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 19:00:13 UTC 2024 - 4.5K bytes - Viewed (0)