Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 3,022 for sfprintf (0.18 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. 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)
  3. 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)
  4. 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)
  5. src/cmd/covdata/dump.go

    		fmt.Fprintf(os.Stderr, "  \tand emits percentage of statements covered\n\n")
    	case funcMode:
    		fmt.Fprintf(os.Stderr, "  go tool covdata func -i=dir1,dir2\n\n")
    		fmt.Fprintf(os.Stderr, "  \treads coverage data files from dir1+dirs2\n")
    		fmt.Fprintf(os.Stderr, "  \tand writes out coverage profile data for\n")
    		fmt.Fprintf(os.Stderr, "  \teach function.\n")
    	case debugDumpMode:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:36:57 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top