- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 144 for expvar (0.22 sec)
-
src/syscall/mksyscall.pl
if($type =~ /^\*/) { push @args, "uintptr(unsafe.Pointer($name))"; } elsif($type eq "string" && $errvar ne "") { $text .= "\tvar _p$n *byte\n"; $text .= "\t_p$n, $errvar = BytePtrFromString($name)\n"; $text .= "\tif $errvar != nil {\n\t\treturn\n\t}\n"; push @args, "uintptr(unsafe.Pointer(_p$n))"; $n++; } elsif($type eq "string") {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 17:15:02 UTC 2024 - 10.3K bytes - Viewed (0) -
internal/auth/credentials.go
func ExpToInt64(expI interface{}) (expAt int64, err error) { switch exp := expI.(type) { case string: expAt, err = strconv.ParseInt(exp, 10, 64) case float64: expAt, err = int64(exp), nil case int64: expAt, err = exp, nil case int: expAt, err = int64(exp), nil case uint64: expAt, err = int64(exp), nil case uint: expAt, err = int64(exp), nil case json.Number:
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue May 28 17:14:16 UTC 2024 - 12K bytes - Viewed (0) -
src/flag/example_textvar_test.go
package flag_test import ( "flag" "fmt" "net" "os" ) func ExampleTextVar() { fs := flag.NewFlagSet("ExampleTextVar", flag.ContinueOnError) fs.SetOutput(os.Stdout) var ip net.IP fs.TextVar(&ip, "ip", net.IPv4(192, 168, 0, 100), "`IP address` to parse") fs.Parse([]string{"-ip", "127.0.0.1"}) fmt.Printf("{ip: %v}\n\n", ip) // 256 is not a valid IPv4 component ip = nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 10 16:56:17 UTC 2022 - 847 bytes - Viewed (0) -
test/escape_slice.go
NextVar: for _, inkv := range in { k := strings.SplitAfterN(inkv, "=", 2)[0] for i, outkv := range out { if strings.HasPrefix(outkv, k) { out[i] = inkv continue NextVar } } out = append(out, inkv) } return out } const ( IPv4len = 4 IPv6len = 16
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 18:50:24 UTC 2023 - 3.9K bytes - Viewed (0) -
tensorflow/c/kernels_experimental.cc
updateFunc(ctx, tf_var_tensor, tf_value, Op); TF_SetStatus(tf_status, TF_OK, ""); } struct TmpVar : public ResourceBase { tensorflow::mutex mu; Tensor val; std::string name; std::string DebugString() const override { return name; } ~TmpVar() override { VLOG(3) << "TmpVar " << name << " deleted"; } }; // Makes a unique name for a temporary variable inside a while loop body,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 23 06:12:29 UTC 2024 - 30.9K bytes - Viewed (0) -
cmd/kubeadm/app/preflight/checks_test.go
var tests = []struct { testName string endpoint string expStr []string }{ { testName: "single stack ipv4", endpoint: "10.244.0.0:1234", expStr: []string{"FileContent--proc-sys-net-ipv4-ip_forward"}, }, { testName: "single stack ipv6", endpoint: "[fda9:d324:354d:0::]:1234", expStr: []string{"FileContent--proc-sys-net-ipv6-conf-default-forwarding"}, }, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 06:58:01 UTC 2024 - 33.5K bytes - Viewed (0) -
plugin/pkg/admission/resourcequota/admission_test.go
if testCase.expErr == "" { if err != nil { t.Fatalf("Testcase, %v, failed with unexpected error: %v. ExpErr: %v", testCase.description, err, testCase.expErr) } } else { if !strings.Contains(fmt.Sprintf("%v", err), testCase.expErr) { t.Fatalf("Testcase, %v, failed with unexpected error: %v. ExpErr: %v", testCase.description, err, testCase.expErr) } } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 21:28:42 UTC 2024 - 84.1K bytes - Viewed (0) -
cmd/kubeadm/app/apis/kubeadm/v1beta4/zz_generated.deepcopy.go
func (in *EnvVar) DeepCopyInto(out *EnvVar) { *out = *in in.EnvVar.DeepCopyInto(&out.EnvVar) return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvVar. func (in *EnvVar) DeepCopy() *EnvVar { if in == nil { return nil } out := new(EnvVar) in.DeepCopyInto(out) return out }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 08:34:39 UTC 2024 - 24.1K bytes - Viewed (0) -
src/runtime/runtime-gdb_test.go
var gslice []string func main() { mapvar := make(map[string]string, ` + strconv.FormatInt(abi.MapBucketCount+9, 10) + `) slicemap := make(map[string][]string,` + strconv.FormatInt(abi.MapBucketCount+3, 10) + `) chanint := make(chan int, 10) chanstr := make(chan string, 10) chanint <- 99 chanint <- 11 chanstr <- "spongepants" chanstr <- "squarebob" mapvar["abc"] = "def" mapvar["ghi"] = "jkl"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 23.2K bytes - Viewed (0) -
src/log/slog/level_test.go
t.Errorf("%q: got %v, want string containing %q", test.in, err, test.want) } } } func TestLevelFlag(t *testing.T) { fs := flag.NewFlagSet("test", flag.ContinueOnError) lf := LevelInfo fs.TextVar(&lf, "level", lf, "set level") err := fs.Parse([]string{"-level", "WARN+3"}) if err != nil { t.Fatal(err) } if g, w := lf, LevelWarn+3; g != w { t.Errorf("got %v, want %v", g, w) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 20:44:14 UTC 2024 - 4K bytes - Viewed (0)