- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 3,341 for vfprintf (0.17 sec)
-
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) -
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) -
src/go/doc/testdata/example.go
out := <-outC // report any errors tstr := fmt.Sprintf("(%.2f seconds)", dt.Seconds()) if g, e := strings.TrimSpace(out), strings.TrimSpace(eg.Output); g != e { fmt.Printf("--- FAIL: %s %s\ngot:\n%s\nwant:\n%s\n", eg.Name, tstr, g, e) ok = false } else if *chatty { fmt.Printf("--- PASS: %s %s\n", eg.Name, tstr) } } return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Oct 02 02:28:27 UTC 2022 - 1.6K bytes - Viewed (0) -
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) -
src/os/executable_test.go
before, err := os.Executable() if err != nil { fmt.Fprintf(os.Stderr, "failed to read executable name before deletion: %v\n", err) os.Exit(1) } err = os.Remove(before) if err != nil { fmt.Fprintf(os.Stderr, "failed to remove executable: %v\n", err) os.Exit(1) } after, err := os.Executable() if err != nil { fmt.Fprintf(os.Stderr, "failed to read executable name after deletion: %v\n", err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 05 23:35:32 UTC 2023 - 3.4K bytes - Viewed (0) -
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) -
src/testing/run_example_wasm.go
_, seekErr := f.Seek(0, io.SeekStart) _, readErr := io.Copy(&buf, f) out := buf.String() f.Close() os.Remove(f.Name()) if seekErr != nil { fmt.Fprintf(os.Stderr, "testing: seek temp file: %v\n", seekErr) os.Exit(1) } if readErr != nil { fmt.Fprintf(os.Stderr, "testing: read temp file: %v\n", readErr) os.Exit(1) } err := recover() ok = eg.processRunResult(out, timeSpent, finished, err) }()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 11 20:56:32 UTC 2023 - 1.8K bytes - Viewed (0) -
src/go/doc/testdata/testing.go
stopAlarm() RunBenchmarks(matchString, benchmarks) after() } func (t *T) report() { tstr := fmt.Sprintf("(%.2f seconds)", t.duration.Seconds()) format := "--- %s: %s %s\n%s" if t.failed { fmt.Printf(format, "FAIL", t.name, tstr, t.output) } else if *chatty { fmt.Printf(format, "PASS", t.name, tstr, t.output) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Oct 02 02:28:27 UTC 2022 - 11.8K bytes - Viewed (0) -
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) -
src/cmd/compile/internal/ir/fmt.go
if n.Value != nil { fmt.Fprintf(s, ", %v", n.Value) } fmt.Fprint(s, " =") } fmt.Fprintf(s, " range %v { %v }", n.X, n.Body) if n.DistinctVars { fmt.Fprint(s, " /* distinct vars */") } case OSELECT: n := n.(*SelectStmt) if !exportFormat { fmt.Fprintf(s, "%v statement", n.Op()) break } fmt.Fprintf(s, "select { %v }", n.Cases)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 15:20:28 UTC 2023 - 26K bytes - Viewed (0)