- Sort Score
- Result 10 results
- Languages All
Results 181 - 190 of 351 for dtoi (0.17 sec)
-
schema/field.go
} if num, ok := field.TagSettings["SIZE"]; ok { if field.Size, err = strconv.Atoi(num); err != nil { field.Size = -1 } } if p, ok := field.TagSettings["PRECISION"]; ok { field.Precision, _ = strconv.Atoi(p) } if s, ok := field.TagSettings["SCALE"]; ok { field.Scale, _ = strconv.Atoi(s) } // default value is function or null or blank (primary keys)
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Mon Apr 15 03:20:20 UTC 2024 - 32K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/construct.go
} // use the protobuf tag, which must be stable dataInt := 0 if protobufTagParts := strings.Split(field.Tag.Get("protobuf"), ","); len(protobufTagParts) > 1 { if tag, err := strconv.Atoi(protobufTagParts[1]); err != nil { panic(err) } else { dataInt = tag } } if dataInt == 0 { // fall back to the length of dataString as a backup dataInt = -len(dataString)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 27 19:12:59 UTC 2023 - 6.5K bytes - Viewed (0) -
src/internal/testenv/exec.go
// output of a reasonable program after it terminates. gracePeriod = 100 * time.Millisecond if s := os.Getenv("GO_TEST_TIMEOUT_SCALE"); s != "" { scale, err := strconv.Atoi(s) if err != nil { t.Fatalf("invalid GO_TEST_TIMEOUT_SCALE: %v", err) } gracePeriod *= time.Duration(scale) } // If time allows, increase the termination grace period to 5% of the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 27 17:53:23 UTC 2023 - 7.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/cover/profile.go
// we can ignore the possibility of non-ASCII characters. for start := end - 1; start >= 0; start-- { if l[start] == sep { i, err := strconv.Atoi(l[start+1 : end]) if err != nil { return 0, 0, fmt.Errorf("couldn't parse %q: %v", what, err) } if i < 0 { return 0, 0, fmt.Errorf("negative values are not allowed for %s, found %d", what, i) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 11 17:02:03 UTC 2021 - 7.5K bytes - Viewed (0) -
pkg/test/framework/components/istio/ingress.go
for _, addr := range anyRemoteAddrs { switch v := addr.(type) { case string: host, portStr, err := net.SplitHostPort(v) if err != nil { return nil, nil, err } mappedPort, err := strconv.Atoi(portStr) if err != nil { return nil, nil, err } addrs = append(addrs, host) ports = append(ports, mappedPort) case netip.AddrPort: addrs = append(addrs, v.Addr().String())
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 29 17:13:34 UTC 2024 - 8K bytes - Viewed (0) -
pkg/test/framework/components/istio/istio.go
retVal = thisVal case 3: // match something like aaa[100] thisVal := val[match[1]] // If it is a list and looking for more down the path if thisVal.GetListValue() != nil && len(path) > 1 { index, _ := strconv.Atoi(match[2]) return getConfigValue(path[1:], thisVal.GetListValue().Values[index].GetStructValue().Fields) } retVal = thisVal } } return retVal }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Oct 30 17:47:34 UTC 2023 - 8K bytes - Viewed (0) -
src/vendor/golang.org/x/net/nettest/nettest.go
// Technical Level < 2. out, _ := exec.Command("oslevel", "-s").Output() if len(out) >= len("7200-XX-ZZ-YYMM") { // AIX 7.2, Tech Level XX, Service Pack ZZ, date YYMM ver := string(out[:4]) tl, _ := strconv.Atoi(string(out[5:7])) unStrmDgramEnabled = ver > "7200" || (ver == "7200" && tl >= 2) } default: unStrmDgramEnabled = true } } func unixStrmDgramEnabled() bool { stackOnce.Do(probeStack)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 8.5K bytes - Viewed (0) -
test/fibo.go
flag.Parse() if args := flag.Args(); len(args) > 0 { // command-line use fmt.Printf("half = %v, opt = %v, wordsize = %d bits\n", *half, *opt, W) for _, arg := range args { n, err := strconv.Atoi(arg) if err != nil || n < 0 { fmt.Println("invalid argument", arg) continue } doFibo(n) } return } if *bench { for i := 0; i < 4; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 08 22:22:58 UTC 2014 - 6.3K bytes - Viewed (0) -
pkg/util/flag/flags.go
if len(memoryTypeReservations) < 1 { return fmt.Errorf("the reserved memory has incorrect format, expected numaNodeID:type=quantity[,type=quantity...], got %s", reservation) } numaNodeID, err := strconv.Atoi(numaNodeReservation[0]) if err != nil { return fmt.Errorf("failed to convert the NUMA node ID, exptected integer, got %s", numaNodeReservation[0]) } memoryReservation := kubeletconfig.MemoryReservation{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 19 03:30:46 UTC 2022 - 7.8K bytes - Viewed (0) -
pkg/kubelet/lifecycle/handlers.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 19 11:40:52 UTC 2024 - 8.2K bytes - Viewed (0)