Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,692 for fmtF (0.21 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. pkg/config/validation/agent/extensionprovider.go

    	if config == nil {
    		return fmt.Errorf("nil TracingLightStepProvider")
    	}
    	if err := validateExtensionProviderService(config.Service); err != nil {
    		errs = AppendErrors(errs, err)
    	}
    	if err := ValidatePort(int(config.Port)); err != nil {
    		errs = AppendErrors(errs, fmt.Errorf("invalid service port: %v", err))
    	}
    	if config.AccessToken == "" {
    		errs = AppendErrors(errs, fmt.Errorf("access token is required"))
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. 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)
Back to top