Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,732 for fmtF (0.67 sec)

  1. src/cmd/vet/testdata/print/print.go

    	fmt.Printf("%s", &stringerv)
    	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: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 27.5K bytes
    - Viewed (0)
  2. src/strings/example_test.go

    	fmt.Println(b.String())
    
    	// Output: 3...2...1...ignition
    }
    
    func ExampleCompare() {
    	fmt.Println(strings.Compare("a", "b"))
    	fmt.Println(strings.Compare("a", "a"))
    	fmt.Println(strings.Compare("b", "a"))
    	// Output:
    	// -1
    	// 0
    	// 1
    }
    
    func ExampleContains() {
    	fmt.Println(strings.Contains("seafood", "foo"))
    	fmt.Println(strings.Contains("seafood", "bar"))
    	fmt.Println(strings.Contains("seafood", ""))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 22:05:38 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/main.go

    	}
    }
    
    func genOp() {
    	w := new(bytes.Buffer)
    	fmt.Fprintf(w, "// Code generated from _gen/*Ops.go using 'go generate'; DO NOT EDIT.\n")
    	fmt.Fprintln(w)
    	fmt.Fprintln(w, "package ssa")
    
    	fmt.Fprintln(w, "import (")
    	fmt.Fprintln(w, "\"cmd/internal/obj\"")
    	for _, a := range archs {
    		if a.pkg != "" {
    			fmt.Fprintf(w, "%q\n", a.pkg)
    		}
    	}
    	fmt.Fprintln(w, ")")
    
    	// generate Block* declarations
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 22:42:34 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  4. src/time/example_test.go

    	// The package also accepts the incorrect but common prefix u for micro.
    	micro2, _ := time.ParseDuration("1us")
    
    	fmt.Println(hours)
    	fmt.Println(complex)
    	fmt.Printf("There are %.0f seconds in %v.\n", complex.Seconds(), complex)
    	fmt.Printf("There are %d nanoseconds in %v.\n", micro.Nanoseconds(), micro)
    	fmt.Printf("There are %6.2e seconds in %v.\n", micro2.Seconds(), micro2)
    	// Output:
    	// 10h0m0s
    	// 1h10m10s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 01:05:00 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  5. src/cmd/covdata/dump.go

    		fmt.Fprintf(os.Stderr, "  \tmerges data from input directories dir1+dir2\n")
    		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")
    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/vendor/golang.org/x/arch/arm64/arm64asm/plan9x.go

    					op = fmt.Sprintf("%sS", op)
    				} else if rno >= uint16(D0) && rno <= uint16(D31) {
    					op = fmt.Sprintf("%sD", op)
    				}
    			}
    		}
    
    	case FABS, FNEG, FSQRT, FRINTN, FRINTP, FRINTM, FRINTZ, FRINTA, FRINTX, FRINTI:
    		if r, ok := inst.Args[1].(Reg); ok {
    			rno := uint16(r)
    			if rno >= uint16(S0) && rno <= uint16(S31) {
    				op = fmt.Sprintf("%sS", op)
    			} else if rno >= uint16(D0) && rno <= uint16(D31) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 22:24:28 UTC 2022
    - 17K bytes
    - Viewed (0)
  7. src/internal/fuzz/encoding.go

    			if utf8.ValidRune(t) {
    				fmt.Fprintf(b, "rune(%q)\n", t)
    			} else {
    				fmt.Fprintf(b, "int32(%v)\n", t)
    			}
    		case byte: // uint8
    			// For bytes, we arbitrarily prefer the character interpretation.
    			// (Every byte has a valid character encoding.)
    			fmt.Fprintf(b, "byte(%q)\n", t)
    		case []byte: // []uint8
    			fmt.Fprintf(b, "[]byte(%q)\n", t)
    		default:
    			panic(fmt.Sprintf("unsupported type: %T", t))
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 30 16:39:12 UTC 2022
    - 11K bytes
    - Viewed (0)
  8. pkg/kubelet/apis/config/validation/validation.go

    		allErrors = append(allErrors, fmt.Errorf("invalid configuration: systemCgroups (--system-cgroups) was specified and cgroupRoot (--cgroup-root) was not specified"))
    	}
    	if kc.EventBurst < 0 {
    		allErrors = append(allErrors, fmt.Errorf("invalid configuration: eventBurst (--event-burst) %v must not be a negative number", kc.EventBurst))
    	}
    	if kc.EventRecordQPS < 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 17:13:59 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  9. src/fmt/example_test.go

    func ExampleFscanf() {
    	var (
    		i int
    		b bool
    		s string
    	)
    	r := strings.NewReader("5 true gophers")
    	n, err := fmt.Fscanf(r, "%d %t %s", &i, &b, &s)
    	if err != nil {
    		fmt.Fprintf(os.Stderr, "Fscanf: %v\n", err)
    	}
    	fmt.Println(i, b, s)
    	fmt.Println(n)
    	// Output:
    	// 5 true gophers
    	// 3
    }
    
    func ExampleFscanln() {
    	s := `dmr 1771 1.61803398875
    	ken 271828 3.14159`
    	r := strings.NewReader(s)
    	var a string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 21:03:10 UTC 2019
    - 11.8K bytes
    - Viewed (0)
  10. docs/debugging/xl-meta/main.go

    						fmt.Println("Remapped", partName, "to", fn)
    					}
    					delete(partDataToVerID, partName)
    					err := os.WriteFile(fn, data, os.ModePerm)
    					if err != nil {
    						fmt.Println("WriteFile:", err)
    					}
    				}
    			}
    			if len(partDataToVerID) > 0 {
    				fmt.Println("MISSING PART FILES:")
    				for k := range partDataToVerID {
    					fmt.Println(k)
    				}
    				fmt.Println("END MISSING PART FILES")
    			}
    		}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 31 14:49:23 UTC 2024
    - 38.5K bytes
    - Viewed (0)
Back to top