- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 5,349 for fmtE (0.16 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/internal/analysisflags/help.go
if len(args) == 0 { fmt.Println(strings.Replace(help, "PROGNAME", progname, -1)) fmt.Println("Registered analyzers:") fmt.Println() sort.Slice(analyzers, func(i, j int) bool { return analyzers[i].Name < analyzers[j].Name }) for _, a := range analyzers { title := strings.Split(a.Doc, "\n\n")[0] fmt.Printf(" %-12s %s\n", a.Name, title) } fmt.Println("\nBy default all analyzers are run.")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 08 01:33:44 UTC 2021 - 2.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/doc.go
// Here it is incorrectly applied to a string: // // fmt.Printf("%d", "hello") // fmt.Printf format %d has arg "hello" of wrong type string // // A call to Printf must have as many operands as there are "verbs" in // the format string, not too few: // // fmt.Printf("%d") // fmt.Printf format reads arg 1, but call has 0 args // // nor too many: // // fmt.Printf("%d", 1, 2) // fmt.Printf call needs 1 arg, but has 2 args //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 3.2K bytes - Viewed (0) -
istioctl/pkg/describe/describe.go
fmt.Fprintf(writer, "WARNING: User ID (UID) 1337 is reserved for the sidecar proxy.\n") } } } } fmt.Fprintf(writer, "Pod: %s\n", kname(pod.ObjectMeta)) fmt.Fprintf(writer, " Pod Revision: %s\n", revision) if len(ports) > 0 { fmt.Fprintf(writer, " Pod Ports: %s\n", strings.Join(ports, ", ")) } else { fmt.Fprintf(writer, " Pod does not expose ports\n") }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 50.4K bytes - Viewed (0) -
src/cmd/go/testdata/script/list_test_simple.txt
module m go 1.16 -- bench_test.go -- package testlist import ( "fmt" "testing" ) func BenchmarkSimplefunc(b *testing.B) { b.StopTimer() b.StartTimer() for i := 0; i < b.N; i++ { _ = fmt.Sprint("Test for bench") } } -- example_test.go -- package testlist import ( "fmt" ) func ExampleSimple() { fmt.Println("Test with Output.") // Output: Test with Output. }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 17 13:25:29 UTC 2020 - 856 bytes - Viewed (0) -
test/fixedbugs/issue15528.go
{fmt.Stringer(Strunger(((*Int)(nil)))), "*main.Int <nil>"}, } type Int int func (i Int) String() string { return fmt.Sprintf("Int=%d", i) } func (i Int) Strung() {} type Strunger interface { fmt.Stringer Strung() } // Test correct construction of static non-empty interface values var ifaces = [...]struct { x fmt.Stringer s string }{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 12 14:31:26 UTC 2016 - 3.1K bytes - Viewed (0) -
test/typeparam/minimp.dir/main.go
package main import ( "./a" "fmt" ) func main() { const want = 2 if got := a.Min[int](2, 3); got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) } if got := a.Min(2, 3); got != want { panic(fmt.Sprintf("want %d, got %d", want, got)) } if got := a.Min[float64](3.5, 2.0); got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 855 bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_example_test.go
fmt.Printf("cores = %v\n", cores) // Output: // memorySize = 5Gi // diskSize = 5G // cores = 5300m } func ExampleMustParse() { memorySize := resource.MustParse("5Gi") fmt.Printf("memorySize = %v (%v)\n", memorySize.Value(), memorySize.Format) diskSize := resource.MustParse("5G") fmt.Printf("diskSize = %v (%v)\n", diskSize.Value(), diskSize.Format) cores := resource.MustParse("5300m")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 29 20:41:44 UTC 2017 - 1.7K bytes - Viewed (0) -
test/typeparam/issue50193.go
package main import ( "fmt" ) type Complex interface { ~complex64 | ~complex128 } func zero[T Complex]() T { return T(0) } func pi[T Complex]() T { return T(3.14) } func sqrtN1[T Complex]() T { return T(-1i) } func main() { fmt.Println(zero[complex128]()) fmt.Println(pi[complex128]()) fmt.Println(sqrtN1[complex128]()) fmt.Println(zero[complex64]())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 599 bytes - Viewed (0) -
src/cmd/go/testdata/script/test_race_install_cgo.txt
fmt.Fprintln(os.Stderr, err) os.Exit(1) } } -- sametime/sametime.go -- package main import ( "encoding/json" "fmt" "os" "time" ) func main() { var t1 time.Time b1, err := os.ReadFile(os.Args[1]) if err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) } if err := json.Unmarshal(b1, &t1); err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 27 14:03:15 UTC 2021 - 1.8K bytes - Viewed (0) -
src/go/doc/testdata/examples/multiple.go
// license that can be found in the LICENSE file. package foo_test import ( "flag" "fmt" "log" "os/exec" "sort" ) func ExampleHello() { fmt.Println("Hello, world!") // Output: Hello, world! } func ExampleImport() { out, err := exec.Command("date").Output() if err != nil { log.Fatal(err) } fmt.Printf("The date is %s\n", out) } func ExampleKeyValue() { v := struct { a string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 10 16:17:51 UTC 2022 - 1.7K bytes - Viewed (0)