- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 68 for SLICE (1.12 sec)
-
src/cmd/compile/internal/types2/conversions.go
return true } // "and vice versa" if isUnsafePointer(Vu) && (isPointer(Tu) || isUintptr(Tu)) { return true } // "V is a slice, T is an array or pointer-to-array type, // and the slice and array types have identical element types." if s, _ := Vu.(*Slice); s != nil { switch a := Tu.(type) { case *Array: if Identical(s.Elem(), a.Elem()) { if check == nil || check.allowVersion(x, go1_20) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 18:51:00 UTC 2024 - 9K bytes - Viewed (0) -
src/index/suffixarray/suffixarray.go
} else { // re-use existing buffers x.data = x.data[0:n] x.sa = x.sa.slice(0, n) } // read data if _, err := io.ReadFull(r, x.data); err != nil { return err } // read index sa := x.sa for sa.len() > 0 { n, err := readSlice(r, buf, sa) if err != nil { return err } sa = sa.slice(n, sa.len()) } return nil } // Write writes the index x to w.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 9.5K bytes - Viewed (0) -
src/cmd/nm/nm.go
continue } found = true switch *sortOrder { case "address": sort.Slice(syms, func(i, j int) bool { return syms[i].Addr < syms[j].Addr }) case "name": sort.Slice(syms, func(i, j int) bool { return syms[i].Name < syms[j].Name }) case "size": sort.Slice(syms, func(i, j int) bool { return syms[i].Size > syms[j].Size }) } for _, sym := range syms {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 3.1K bytes - Viewed (0) -
cmd/kubeadm/app/apis/kubeadm/v1beta3/conversion.go
} // convertToArgs takes a argument map and converts it to a slice of arguments. // Te resulting argument slice is sorted alpha-numerically. func convertToArgs(in map[string]string) []kubeadm.Arg { if in == nil { return nil } args := make([]kubeadm.Arg, 0, len(in)) for k, v := range in { args = append(args, kubeadm.Arg{Name: k, Value: v}) } sort.Slice(args, func(i, j int) bool { if args[i].Name == args[j].Name {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 13 06:41:07 UTC 2024 - 8.3K bytes - Viewed (0) -
staging/src/k8s.io/api/discovery/v1/types.go
// endpoints is a list of unique endpoints in this slice. Each slice may // include a maximum of 1000 endpoints. // +listType=atomic Endpoints []Endpoint `json:"endpoints" protobuf:"bytes,2,rep,name=endpoints"` // ports specifies the list of network ports exposed by each endpoint in // this slice. Each port must have a unique name. When ports is empty, it
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 23 17:42:49 UTC 2024 - 9.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/build/relnote/links.go
case *md.HTMLBlock: case *md.Empty: case *md.ThematicBreak: default: panic(fmt.Sprintf("unknown block type %T", b)) } } // addSymbolLinksInlines looks for symbol links in the slice of inline markdown // elements. It returns a new slice of inline elements with links added. func addSymbolLinksInlines(ins []md.Inline, defaultPackage string) []md.Inline { ins = splitAtBrackets(ins) var res []md.Inline for i := 0; i < len(ins); i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 8.2K bytes - Viewed (0) -
src/cmd/go/testdata/script/list_pgo_issue66218.txt
# Test that pgo properly splits off the Imports field so that list doesn't alias # the non-pgo variant's slice when it modifies the pgo variant's Imports field to # add the [.ForMain] suffix. go list -f 'ImportPath: "{{.ImportPath}}", Imports: "{{.Imports}}", ImportMap: "{{.ImportMap}}"' m/a m/b cmp stdout want -- want -- ImportPath: "m/a", Imports: "[m/b [m/a]]", ImportMap: "map[m/b:m/b [m/a]]" ImportPath: "m/b", Imports: "[m/c]", ImportMap: "map[]"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 28 17:00:51 UTC 2024 - 615 bytes - Viewed (0) -
pkg/proxy/util/utils.go
klog.V(3).InfoS("Skipping service due to Type=ExternalName", "service", klog.KObj(service)) return true } return false } // AddressSet validates the addresses in the slice using the "isValid" function. // Addresses that pass the validation are returned as a string Set. func AddressSet(isValid func(ip net.IP) bool, addrs []net.Addr) sets.Set[string] { ips := sets.New[string]()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 20 11:57:43 UTC 2024 - 7.4K bytes - Viewed (0) -
src/internal/coverage/cformat/format.go
type pstate struct { // slice of unique functions funcs []fnfile // maps function to index in slice above (index acts as function ID) funcTable map[fnfile]uint32 // A table storing coverage counts for each coverable unit. unitTable map[extcu]uint32 } // extcu encapsulates a coverable unit within some function. type extcu struct { fnfid uint32 // index into p.funcs slice coverage.CoverableUnit }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 9.7K bytes - Viewed (0) -
src/cmd/trace/procgen.go
ctx.SetResourceType("PROCS") // Finish off ranges first. It doesn't really matter for the global ranges, // but the proc ranges need to either be a subset of a goroutine slice or // their own slice entirely. If the former, it needs to end first. g.procRangeGenerator.Finish(ctx) g.globalRangeGenerator.Finish(ctx) // Finish off all the goroutine slices. for _, gs := range g.gStates {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 6.1K bytes - Viewed (0)