Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 520 for sfprintf (0.14 sec)

  1. src/cmd/internal/obj/util.go

    			fmt.Fprintf(w, "$%d", a.Offset)
    		} else {
    			fmt.Fprintf(w, "$%d-%d", a.Offset, a.Val.(int32))
    		}
    
    	case TYPE_FCONST:
    		str := fmt.Sprintf("%.17g", a.Val.(float64))
    		// Make sure 1 prints as 1.0
    		if !strings.ContainsAny(str, ".e") {
    			str += ".0"
    		}
    		fmt.Fprintf(w, "$(%s)", str)
    
    	case TYPE_SCONST:
    		fmt.Fprintf(w, "$%q", a.Val.(string))
    
    	case TYPE_ADDR:
    		io.WriteString(w, "$")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/apiclient/wait.go

    		portScheduler = "10259"
    	}
    	urlFormat := "https://127.0.0.1:%s/healthz"
    	return []controlPlaneComponent{
    		{name: "kube-apiserver", url: fmt.Sprintf(urlFormat, portAPIServer)},
    		{name: "kube-controller-manager", url: fmt.Sprintf(urlFormat, portKCM)},
    		{name: "kube-scheduler", url: fmt.Sprintf(urlFormat, portScheduler)},
    	}
    }
    
    // WaitForControlPlaneComponents waits for all control plane components to report "ok" on /healthz
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/google/pprof/internal/report/report.go

    		if err != nil {
    			return err
    		}
    
    		ns := annotateAssembly(insts, sns, s.file)
    
    		fmt.Fprintf(w, "ROUTINE ======================== %s\n", s.sym.Name[0])
    		for _, name := range s.sym.Name[1:] {
    			fmt.Fprintf(w, "    AKA ======================== %s\n", name)
    		}
    		fmt.Fprintf(w, "%10s %10s (flat, cum) %s of Total\n",
    			rpt.formatValue(flatSum), rpt.formatValue(cumSum),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  4. src/cmd/trace/main.go

    		divisor = 1 << 10
    	case b < 1<<30:
    		suffix = "MiB"
    		divisor = 1 << 20
    	case b < 1<<40:
    		suffix = "GiB"
    		divisor = 1 << 30
    	}
    	if divisor == 1 {
    		return fmt.Sprintf("%d %s", b, suffix)
    	}
    	return fmt.Sprintf("%.1f %s", float64(b)/float64(divisor), suffix)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. src/cmd/cover/cover.go

    	// Declare the coverage struct as a package-level variable.
    	fmt.Fprintf(w, "\nvar %s = struct {\n", *varVar)
    	fmt.Fprintf(w, "\tCount     [%d]uint32\n", len(f.blocks))
    	fmt.Fprintf(w, "\tPos       [3 * %d]uint32\n", len(f.blocks))
    	fmt.Fprintf(w, "\tNumStmt   [%d]uint16\n", len(f.blocks))
    	fmt.Fprintf(w, "} {\n")
    
    	// Initialize the position array field.
    	fmt.Fprintf(w, "\tPos: [3 * %d]uint32{\n", len(f.blocks))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  6. src/testing/benchmark.go

    		sub.hasSub.Store(true)
    	}
    
    	if b.chatty != nil {
    		labelsOnce.Do(func() {
    			fmt.Printf("goos: %s\n", runtime.GOOS)
    			fmt.Printf("goarch: %s\n", runtime.GOARCH)
    			if b.importPath != "" {
    				fmt.Printf("pkg: %s\n", b.importPath)
    			}
    			if cpu := sysinfo.CPUName(); cpu != "" {
    				fmt.Printf("cpu: %s\n", cpu)
    			}
    		})
    
    		if !hideStdoutForTesting {
    			if b.chatty.json {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  7. src/math/rand/v2/regress_test.go

    					// 32-bit machine cannot print 64-bit results
    					val = "truncated"
    				} else if reflect.TypeOf(out).Kind() == reflect.Slice {
    					val = fmt.Sprintf("%#v", out)
    				} else {
    					val = fmt.Sprintf("%T(%v)", out, out)
    				}
    				fmt.Fprintf(&buf, "\t%s, // %s(%s)\n", val, m.Name, argstr)
    			} else if p >= len(regressGolden) {
    				t.Errorf("r.%s(%s) = %v, missing golden value", m.Name, argstr, out)
    			} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:03:11 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  8. istioctl/pkg/waypoint/waypoint.go

    						break
    					}
    					if time.Since(startTime) > waitTimeout {
    						errorMsg := fmt.Sprintf("timed out while waiting for waypoint %v/%v", gw.Namespace, gw.Name)
    						if err != nil {
    							errorMsg += fmt.Sprintf(": %s", err)
    						}
    						return fmt.Errorf(errorMsg)
    					}
    				}
    			}
    			fmt.Fprintf(cmd.OutOrStdout(), "waypoint %v/%v applied\n", gw.Namespace, gw.Name)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 15:59:33 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/asmdecl/asmdecl.go

    		var inner bytes.Buffer
    		if len(v.inner) > 0 {
    			fmt.Fprintf(&inner, " containing")
    			for i, vi := range v.inner {
    				if i > 0 && len(v.inner) > 2 {
    					fmt.Fprintf(&inner, ",")
    				}
    				fmt.Fprintf(&inner, " ")
    				if i > 0 && i == len(v.inner)-1 {
    					fmt.Fprintf(&inner, "and ")
    				}
    				fmt.Fprintf(&inner, "%s+%d(FP)", vi.name, vi.off)
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  10. src/log/slog/value.go

    func (v Value) Int64() int64 {
    	if g, w := v.Kind(), KindInt64; g != w {
    		panic(fmt.Sprintf("Value kind is %s, not %s", g, w))
    	}
    	return int64(v.num)
    }
    
    // Uint64 returns v's value as a uint64. It panics
    // if v is not an unsigned integer.
    func (v Value) Uint64() uint64 {
    	if g, w := v.Kind(), KindUint64; g != w {
    		panic(fmt.Sprintf("Value kind is %s, not %s", g, w))
    	}
    	return v.num
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top