Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 2,159 for fprint (0.25 sec)

  1. src/cmd/trace/main.go

    	log.Print("Preparing trace for viewer...")
    	parsed, err := parseTraceInteractive(tracef, traceSize)
    	if err != nil {
    		logAndDie(err)
    	}
    	// N.B. tracef not needed after this point.
    	// We might double-close, but that's fine; we ignore the error.
    	tracef.Close()
    
    	// Print a nice message for a partial trace.
    	if parsed.err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/internal/binutils/addr2liner.go

    }
    
    func (d *addr2Liner) rawAddrInfo(addr uint64) ([]plugin.Frame, error) {
    	d.mu.Lock()
    	defer d.mu.Unlock()
    
    	if err := d.rw.write(fmt.Sprintf("%x", addr-d.base)); err != nil {
    		return nil, err
    	}
    
    	if err := d.rw.write(fmt.Sprintf("%x", sentinel)); err != nil {
    		return nil, err
    	}
    
    	resp, err := d.rw.readLine()
    	if err != nil {
    		return nil, err
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 16:39:48 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/errors.go

    func (err *error_) msg() string {
    	if err.empty() {
    		return "no error"
    	}
    
    	var buf strings.Builder
    	for i := range err.desc {
    		p := &err.desc[i]
    		if i > 0 {
    			fmt.Fprint(&buf, "\n\t")
    			if p.pos.IsKnown() {
    				fmt.Fprintf(&buf, "%s: ", p.pos)
    			}
    		}
    		buf.WriteString(p.msg)
    	}
    	return buf.String()
    }
    
    // report reports the error err, setting check.firstError if necessary.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  4. src/go/doc/doc_test.go

    				doc.Filenames[i] = filepath.ToSlash(filename)
    			}
    
    			// print documentation
    			var buf bytes.Buffer
    			if err := templateTxt.Execute(&buf, bundle{doc, fset}); err != nil {
    				t.Fatal(err)
    			}
    			got := buf.Bytes()
    
    			// update golden file if necessary
    			golden := filepath.Join(dataDir, fmt.Sprintf("%s.%d.golden", pkg.Name, mode))
    			if *update {
    				err := os.WriteFile(golden, got, 0644)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:52 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  5. src/cmd/internal/src/pos.go

    	io.WriteString(w, filename)
    	io.WriteString(w, ":")
    	fmt.Fprint(w, line)
    	// col == 0 and col == colMax are interpreted as unknown column values
    	if showCol && 0 < col && col < colMax {
    		io.WriteString(w, ":")
    		fmt.Fprint(w, col)
    	}
    }
    
    // formatstr wraps format to return a string.
    func formatstr(filename string, line, col uint, showCol bool) string {
    	buf := new(bytes.Buffer)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 15.5K bytes
    - Viewed (0)
  6. 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)
  7. src/go/types/errors.go

    func (err *error_) msg() string {
    	if err.empty() {
    		return "no error"
    	}
    
    	var buf strings.Builder
    	for i := range err.desc {
    		p := &err.desc[i]
    		if i > 0 {
    			fmt.Fprint(&buf, "\n\t")
    			if p.posn.Pos().IsValid() {
    				fmt.Fprintf(&buf, "%s: ", err.check.fset.Position(p.posn.Pos()))
    			}
    		}
    		buf.WriteString(p.msg)
    	}
    	return buf.String()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  8. pkg/proxy/healthcheck/service_health.go

    	if count != 0 && kubeProxyHealthy {
    		resp.WriteHeader(http.StatusOK)
    	} else {
    		resp.WriteHeader(http.StatusServiceUnavailable)
    	}
    	fmt.Fprint(resp, strings.Trim(dedent.Dedent(fmt.Sprintf(`
    		{
    			"service": {
    				"namespace": %q,
    				"name": %q
    			},
    			"localEndpoints": %d,
    			"serviceProxyHealthy": %v
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 30 09:25:48 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/google/pprof/internal/report/report.go

    				// Short instruction, print loc on the same line.
    				fmt.Fprintf(w, "%10s %10s %10x: %-40s;%s\n",
    					valueOrDot(n.flatValue(), rpt),
    					valueOrDot(n.cumValue(), rpt),
    					n.address, n.instruction,
    					locStr,
    				)
    			default:
    				// Long instruction, print loc on a separate line.
    				fmt.Fprintf(w, "%74s;%s\n", "", locStr)
    				fmt.Fprintf(w, "%10s %10s %10x: %s\n",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/cmd/token.go

    	createCmd.Flags().BoolVar(&printJoinCommand,
    		"print-join-command", false, "Instead of printing only the token, print the full 'kubeadm join' flag needed to join the cluster using the token.")
    	createCmd.Flags().StringVar(&certificateKey,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 05:47:48 UTC 2024
    - 15.9K bytes
    - Viewed (0)
Back to top