Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,724 for vfprintf (0.34 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go

    // example, fmt.Printf forwards to fmt.Fprintf. We avoid relying on the
    // driver applying analyzers to standard packages because "go vet" does
    // not do so with gccgo, and nor do some other build systems.
    var isPrint = stringSet{
    	"fmt.Appendf":  true,
    	"fmt.Append":   true,
    	"fmt.Appendln": true,
    	"fmt.Errorf":   true,
    	"fmt.Fprint":   true,
    	"fmt.Fprintf":  true,
    	"fmt.Fprintln": true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/output/output.go

    func (tp *TextPrinter) PrintObj(obj runtime.Object, writer io.Writer) error {
    	_, err := fmt.Fprintf(writer, "%+v\n", obj)
    	return err
    }
    
    // Fprintf is a wrapper around fmt.Fprintf
    func (tp *TextPrinter) Fprintf(writer io.Writer, format string, args ...interface{}) (n int, err error) {
    	return fmt.Fprintf(writer, format, args...)
    }
    
    // Fprintln is a wrapper around fmt.Fprintln
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 19 08:22:45 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. src/cmd/cgo/out.go

    			fmt.Fprintf(fgcc, "(void*)")
    		}
    	}
    	if n.Kind == "macro" {
    		fmt.Fprintf(fgcc, "%s;\n", n.C)
    	} else {
    		fmt.Fprintf(fgcc, "%s(", n.C)
    		for i := range n.FuncType.Params {
    			if i > 0 {
    				fmt.Fprintf(fgcc, ", ")
    			}
    			fmt.Fprintf(fgcc, "p%d", i)
    		}
    		fmt.Fprintf(fgcc, ");\n")
    	}
    	fmt.Fprintf(fgcc, "\t_cgo_tsan_release();\n")
    	if t := n.FuncType.Result; t != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  4. src/fmt/fmt_test.go

    	{1, `Sprintf("%g")`, func() { _ = Sprintf("%g", float32(3.14159)) }},
    	{0, `Fprintf(buf, "%s")`, func() { mallocBuf.Reset(); Fprintf(&mallocBuf, "%s", "hello") }},
    	{0, `Fprintf(buf, "%x")`, func() { mallocBuf.Reset(); Fprintf(&mallocBuf, "%x", 7) }},
    	{0, `Fprintf(buf, "%x")`, func() { mallocBuf.Reset(); Fprintf(&mallocBuf, "%x", 1<<16) }},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  5. src/net/http/triv.go

    	case "POST":
    		var buf strings.Builder
    		io.Copy(&buf, req.Body)
    		body := buf.String()
    		if n, err := strconv.Atoi(body); err != nil {
    			fmt.Fprintf(w, "bad POST: %v\nbody: [%v]\n", err, body)
    		} else {
    			ctr.n = n
    			fmt.Fprint(w, "counter reset\n")
    		}
    	}
    	fmt.Fprintf(w, "counter = %d\n", ctr.n)
    }
    
    // simple flag server
    var booleanflag = flag.Bool("boolean", true, "another flag for testing")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. src/runtime/mksizeclasses.go

    	fmt.Fprintf(w, "minHeapAlign = %d\n", minHeapAlign)
    	fmt.Fprintf(w, "_MaxSmallSize = %d\n", maxSmallSize)
    	fmt.Fprintf(w, "smallSizeDiv = %d\n", smallSizeDiv)
    	fmt.Fprintf(w, "smallSizeMax = %d\n", smallSizeMax)
    	fmt.Fprintf(w, "largeSizeDiv = %d\n", largeSizeDiv)
    	fmt.Fprintf(w, "_NumSizeClasses = %d\n", len(classes))
    	fmt.Fprintf(w, "_PageShift = %d\n", pageShift)
    	fmt.Fprintf(w, "maxObjsPerSpan = %d\n", maxObjsPerSpan(classes))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:27 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  7. 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)
  8. src/cmd/covdata/covdata.go

    	if *verbflag >= vlevel {
    		fmt.Printf(s, a...)
    		fmt.Printf("\n")
    	}
    }
    
    func warn(s string, a ...interface{}) {
    	fmt.Fprintf(os.Stderr, "warning: ")
    	fmt.Fprintf(os.Stderr, s, a...)
    	fmt.Fprintf(os.Stderr, "\n")
    	if *hwflag {
    		panic("unexpected warning")
    	}
    }
    
    func fatal(s string, a ...interface{}) {
    	fmt.Fprintf(os.Stderr, "error: ")
    	fmt.Fprintf(os.Stderr, s, a...)
    	fmt.Fprintf(os.Stderr, "\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/doc.go

    // Package printf defines an Analyzer that checks consistency
    // of Printf format strings and arguments.
    //
    // # Analyzer printf
    //
    // printf: check consistency of Printf format strings and arguments
    //
    // The check applies to calls of the formatting functions such as
    // [fmt.Printf] and [fmt.Sprintf], as well as any detected wrappers of
    // those functions such as [log.Printf]. It reports a variety of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. 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)
Back to top