- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 1,635 for fmtF (0.05 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
src/go/build/deps_test.go
arena, strconv, unicode < reflect; os, reflect < internal/fmtsort < fmt; OS, fmt < FMT; log !< FMT; # Misc packages needing only FMT. FMT < html, internal/dag, internal/goroot, internal/types/errors, mime/quotedprintable, net/internal/socktest, net/url, runtime/trace, text/scanner, text/tabwriter;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 16:41:13 UTC 2024 - 19.2K bytes - Viewed (0)