Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,019 for vfprintf (0.25 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/cmd/link/linkbig_test.go

    	fmt.Fprintf(&w, "\t\"fmt\"\n")
    	fmt.Fprintf(&w, ")\n\n")
    
    	for i := 0; i < FN; i++ {
    		fmt.Fprintf(&w, "func bigfn%d()\n", i)
    	}
    	fmt.Fprintf(&w, "\nfunc main() {\n")
    
    	// There are lots of dummy code generated in the .s files just to generate a lot
    	// of text. Link them in but guard their call so their code is not executed but
    	// the main part of the program can be run.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:22:14 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  8. 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...)
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. test/convinline.go

    	switch t2 {
    	case "int":
    		return fmt.Sprintf("%s(%#x)", t2, int(v))
    	case "int8":
    		return fmt.Sprintf("%s(%#x)", t2, int8(v))
    	case "int16":
    		return fmt.Sprintf("%s(%#x)", t2, int16(v))
    	case "int32":
    		return fmt.Sprintf("%s(%#x)", t2, int32(v))
    	case "int64":
    		return fmt.Sprintf("%s(%#x)", t2, int64(v))
    	case "uint":
    		return fmt.Sprintf("%s(%#x)", t2, uint(v))
    	case "uint8":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 17 13:46:05 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  10. operator/cmd/mesh/shared.go

    }
    
    type Printer interface {
    	Printf(format string, a ...any)
    	Println(string)
    }
    
    func NewPrinterForWriter(w io.Writer) Printer {
    	return &writerPrinter{writer: w}
    }
    
    type writerPrinter struct {
    	writer io.Writer
    }
    
    func (w *writerPrinter) Printf(format string, a ...any) {
    	_, _ = fmt.Fprintf(w.writer, format, a...)
    }
    
    func (w *writerPrinter) Println(str string) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 29 02:29:02 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top