Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,984 for printf (0.09 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go

    	"fmt.Printf":   true,
    	"fmt.Println":  true,
    	"fmt.Sprint":   true,
    	"fmt.Sprintf":  true,
    	"fmt.Sprintln": true,
    
    	"runtime/trace.Logf": true,
    
    	"log.Print":             true,
    	"log.Printf":            true,
    	"log.Println":           true,
    	"log.Fatal":             true,
    	"log.Fatalf":            true,
    	"log.Fatalln":           true,
    	"log.Panic":             true,
    	"log.Panicf":            true,
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-04-02 02:20
    - 32.5K bytes
    - Viewed (0)
  2. src/cmd/vet/testdata/print/print.go

    	fmt.Printf("%v", &stringerv)
    	fmt.Printf("%T", &stringerv)
    	fmt.Printf("%s", &embeddedStringerv)
    	fmt.Printf("%v", &embeddedStringerv)
    	fmt.Printf("%T", &embeddedStringerv)
    	fmt.Printf("%v", notstringerv)
    	fmt.Printf("%T", notstringerv)
    	fmt.Printf("%q", stringerarrayv)
    	fmt.Printf("%v", stringerarrayv)
    	fmt.Printf("%s", stringerarrayv)
    	fmt.Printf("%v", notstringerarrayv)
    	fmt.Printf("%T", notstringerarrayv)
    Registered: 2024-06-12 16:32
    - Last Modified: 2023-05-09 01:28
    - 27.5K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/mod/modfile/print.go

    	}
    	return b
    }
    
    // A printer collects the state during printing of a file or expression.
    type printer struct {
    	bytes.Buffer           // output buffer
    	comment      []Comment // pending end-of-line comments
    	margin       int       // left margin (indent), a number of tabs
    }
    
    // printf prints to the buffer.
    func (p *printer) printf(format string, args ...interface{}) {
    	fmt.Fprintf(p, format, args...)
    }
    
    Registered: 2024-06-12 16:32
    - Last Modified: 2023-05-24 00:48
    - 3.8K bytes
    - Viewed (0)
  4. src/go/ast/print.go

    		}
    	}()
    
    	// print x
    	if x == nil {
    		p.printf("nil\n")
    		return
    	}
    	p.print(reflect.ValueOf(x))
    	p.printf("\n")
    
    	return
    }
    
    // Print prints x to standard output, skipping nil fields.
    // Print(fset, x) is the same as Fprint(os.Stdout, fset, x, NotNilFilter).
    func Print(fset *token.FileSet, x any) error {
    	return Fprint(os.Stdout, fset, x, NotNilFilter)
    }
    
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-03-28 21:32
    - 5.9K bytes
    - Viewed (0)
  5. src/fmt/example_test.go

    	// 21 bytes written.
    }
    
    // Print, Println, and Printf lay out their arguments differently. In this example
    // we can compare their behaviors. Println always adds blanks between the items it
    // prints, while Print adds blanks only between non-string arguments and Printf
    // does exactly what it is told.
    // Sprint, Sprintln, Sprintf, Fprint, Fprintln, and Fprintf behave the same as
    Registered: 2024-06-12 16:32
    - Last Modified: 2019-03-25 21:03
    - 11.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/syntax/dumper.go

    				if first {
    					p.printf("\n")
    					first = false
    				}
    				p.printf("%s: ", name)
    				p.dump(x.Field(i), nil)
    				p.printf("\n")
    			}
    		}
    
    		p.indent--
    		p.printf("}")
    
    	default:
    		switch x := x.Interface().(type) {
    		case string:
    			// print strings in quotes
    			p.printf("%q", x)
    		default:
    			p.printf("%v", x)
    		}
    	}
    }
    
    Registered: 2024-06-12 16:32
    - Last Modified: 2021-01-08 17:32
    - 4.5K bytes
    - Viewed (0)
  7. 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: 2024-06-12 16:32
    - Last Modified: 2024-05-03 02:38
    - 3.2K bytes
    - Viewed (0)
  8. test/cmplxdivide.c

    	printf("import \"math\"\n");
    	printf("\n");
    	printf("var (\n");
    	printf("\tnan     = math.NaN()\n");
    	printf("\tinf     = math.Inf(1)\n");
    	printf("\tzero    = 0.0\n");
    	printf(")\n");
    	printf("\n");
    	printf("var tests = []struct {\n");
    	printf("\tf, g complex128\n");
    	printf("\tout  complex128\n");
    	printf("}{\n");
    
    	for(i=0; i<nelem(f); i++)
    	for(j=0; j<nelem(f); j++)
    	for(k=0; k<nelem(f); k++)
    	for(l=0; l<nelem(f); l++) {
    Registered: 2024-06-12 16:32
    - Last Modified: 2017-03-15 22:45
    - 2.1K bytes
    - Viewed (0)
  9. test/strength.go

    func main() {
    	fmt.Printf("package main\n")
    	fmt.Printf("import \"fmt\"\n")
    	fmt.Printf("var failed = false\n")
    
    	f1 := testMul(17, 32)
    	f2 := testMul(131, 64)
    
    	fmt.Printf("func main() {\n")
    	fmt.Println(f1)
    	fmt.Println(f2)
    	fmt.Printf("if failed {\n	panic(\"multiplication failed\")\n}\n")
    	fmt.Printf("}\n")
    Registered: 2024-06-12 16:32
    - Last Modified: 2019-09-08 17:28
    - 1K bytes
    - Viewed (0)
  10. src/cmd/covdata/dump.go

    	if d.cmd == debugDumpMode && !suppressOutput {
    		if !d.preambleEmitted {
    			fmt.Printf("\nPackage path: %s\n", d.pkgImportPath)
    			fmt.Printf("Package name: %s\n", d.pkgName)
    			fmt.Printf("Module path: %s\n", d.modulePath)
    			d.preambleEmitted = true
    		}
    		fmt.Printf("\nFunc: %s\n", fd.Funcname)
    		fmt.Printf("Srcfile: %s\n", fd.Srcfile)
    		fmt.Printf("Literal: %v\n", fd.Lit)
    	}
    	for i := 0; i < len(fd.Units); i++ {
    Registered: 2024-06-12 16:32
    - Last Modified: 2023-05-23 11:36
    - 11.2K bytes
    - Viewed (0)
Back to top