- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 102 for index (0.07 sec)
-
src/cmd/go/internal/base/base.go
} } return false } // LongName returns the command's long name: all the words in the usage line between "go" and a flag or argument, func (c *Command) LongName() string { name := c.UsageLine if i := strings.Index(name, " ["); i >= 0 { name = name[:i] } if name == "go" { return "" } return strings.TrimPrefix(name, "go ") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 18:15:22 UTC 2024 - 5.3K bytes - Viewed (0) -
cmd/httprange.go
} // Trim byte range prefix. byteRangeString := strings.TrimPrefix(rangeString, byteRangePrefix) // Check if range string contains delimiter '-', else return error. eg. "bytes=8" sepIndex := strings.Index(byteRangeString, "-") if sepIndex == -1 { return nil, fmt.Errorf("'%s' does not have a valid range value", rangeString) } offsetBeginString := byteRangeString[:sepIndex] offsetBegin := int64(-1)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu May 09 08:44:07 UTC 2024 - 5.9K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/controller/nonstructuralschema/nonstructuralschema_controller.go
if err != nil { cond.Reason = "StructuralError" cond.Message = fmt.Sprintf("failed to check validation schema for version %s: %v", v.Name, err) return cond } pth := field.NewPath("spec", "versions").Index(i).Child("schema", "openAPIV3Schema") allErrs = append(allErrs, schema.ValidateStructural(pth, s)...) } if len(allErrs) == 0 { return nil } cond.Status = apiextensionsv1.ConditionTrue
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 8.3K bytes - Viewed (0) -
src/internal/dag/parse.go
return t case '!': if len(p.text) < 2 || p.text[1] != '<' { p.syntaxError("unexpected token !") } p.text = p.text[2:] return "!<" case '#': i := strings.Index(p.text, "\n") if i < 0 { i = len(p.text) } p.text = p.text[i:] continue case '\n': p.lineno++ fallthrough case ' ', '\t': p.text = p.text[1:] continue
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 6.7K bytes - Viewed (0) -
src/internal/coverage/pods/pods.go
// than one instrumented executable. In the case where the files that // make up a pod are spread out across multiple directories, each // element of the "Origins" field below will be populated with the // index of the originating directory for the corresponding counter // data file (within the slice of input dirs handed to CollectPods). // The ProcessIDs field will be populated with the process ID of each
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 6.6K bytes - Viewed (0) -
src/runtime/mksizeclasses.go
} for i := range classes { computeDivMagic(&classes[i]) } return classes } // computeDivMagic checks that the division required to compute object // index from span offset can be computed using 32-bit multiplication. // n / c.size is implemented as (n * (^uint32(0)/uint32(c.size) + 1)) >> 32 // for all 0 <= n <= c.npages * pageSize func computeDivMagic(c *class) { // divisor
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 20:31:27 UTC 2024 - 9.6K bytes - Viewed (0) -
pkg/controlplane/controller/crdregistration/crdregistration_controller.go
apiServiceName := groupVersion.Version + "." + groupVersion.Group // check all CRDs. There shouldn't that many, but if we have problems later we can index them crds, err := c.crdLister.List(labels.Everything()) if err != nil { return err } for _, crd := range crds { if crd.Spec.Group != groupVersion.Group { continue }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 8.3K bytes - Viewed (0) -
pkg/config/security/security.go
if err != nil || p > 65535 { errs = multierror.Append(errs, fmt.Errorf("bad port (%s): %v", port, err)) } } return errs.ErrorOrNil() } func validateMapKey(key string) error { open := strings.Index(key, "[") if strings.HasSuffix(key, "]") && open > 0 && open < len(key)-2 { return nil } return fmt.Errorf("bad key (%s): should have format a[b]", key) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 07 04:43:34 UTC 2024 - 9.4K bytes - Viewed (0) -
src/crypto/sha512/sha512.go
} else { t = 128 + 112 - len%128 } // Length in bits. len <<= 3 padlen := tmp[:t+16] // Upper 64 bits are always zero, because len variable has type uint64, // and tmp is already zeroed at that index, so we can skip updating it. // byteorder.BePutUint64(padlen[t+0:], 0) byteorder.BePutUint64(padlen[t+8:], len) d.Write(padlen) if d.nx != 0 { panic("d.nx != 0") } var digest [Size]byte
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:50:58 UTC 2024 - 9.2K bytes - Viewed (0) -
cmd/net.go
func isHostIP(ipAddress string) bool { host, _, err := net.SplitHostPort(ipAddress) if err != nil { host = ipAddress } // Strip off IPv6 zone information. if i := strings.Index(host, "%"); i > -1 { host = host[:i] } return net.ParseIP(host) != nil } // extractHostPort - extracts host/port from many address formats // such as, ":9000", "localhost:9000", "http://localhost:9000/"
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 9.3K bytes - Viewed (0)