- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,447 for sfprintf (0.32 sec)
-
internal/logger/console.go
if msg == "" { fmt.Fprintln(Output, args...) } else { fmt.Fprintf(Output, msg, args...) } } type errorMsg struct{} var errorMessage errorMsg func (i errorMsg) json(msg string, args ...interface{}) { var message string if msg != "" { message = fmt.Sprintf(msg, args...) } else { message = fmt.Sprint(args...) } logJSON, err := json.Marshal(&log.Entry{ Level: ErrorKind,
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.8K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/gen/arithConstGen.go
case "int16": ans = int64(int16(ans)) case "int8": ans = int64(int8(ans)) } return fmt.Sprintf("%d", ans) } func main() { w := new(bytes.Buffer) fmt.Fprintf(w, "// Code generated by gen/arithConstGen.go. DO NOT EDIT.\n\n") fmt.Fprintf(w, "package main;\n") fmt.Fprintf(w, "import \"testing\"\n") fncCnst1 := template.Must(template.New("fnc").Parse( `//go:noinline
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 20 02:13:02 UTC 2022 - 8.3K bytes - Viewed (0) -
src/math/bits/make_examples.go
} else { fmt.Fprintf(w, "\tfmt.Printf(\"%%0%db\\n\", bits.%s(%d))\n", size, f, e.in) } fmt.Fprintf(w, "\t// Output:\n") fmt.Fprintf(w, "\t// %0*b\n", size, e.in) fmt.Fprintf(w, "\t// %0*b\n", size, e.out[i]) if e.name == "RotateLeft" && e.out2[i] != nil { fmt.Fprintf(w, "\t// %0*b\n", size, e.out2[i]) } default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:27 UTC 2023 - 3K bytes - Viewed (0) -
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) -
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/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/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/test/testdata/gen/arithBoundaryGen.go
func main() { w := new(bytes.Buffer) fmt.Fprintf(w, "// Code generated by gen/arithBoundaryGen.go. DO NOT EDIT.\n\n") fmt.Fprintf(w, "package main;\n") fmt.Fprintf(w, "import \"testing\"\n") for _, sz := range []int{64, 32, 16, 8} { fmt.Fprintf(w, "type utd%d struct {\n", sz) fmt.Fprintf(w, " a,b uint%d\n", sz) fmt.Fprintf(w, " add,sub,mul,div,mod uint%d\n", sz) fmt.Fprintf(w, "}\n")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 20 02:13:02 UTC 2022 - 5.5K bytes - Viewed (0) -
src/go/doc/testdata/benchmark.go
benchName = fmt.Sprintf("%s-%d", Benchmark.Name, procs) } fmt.Printf("%s\t", benchName) r := b.run() if b.failed { // The output could be very long here, but probably isn't. // We print it all, regardless, because we don't want to trim the reason // the benchmark failed. fmt.Printf("--- FAIL: %s\n%s", benchName, b.output) continue } fmt.Printf("%v\n", r)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Oct 02 02:28:27 UTC 2022 - 7.4K 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)