- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 4,226 for fmtE (0.21 sec)
-
src/cmd/compile/internal/test/testdata/gen/cmpConstGen.go
for _, typ := range types { fmt.Fprintf(w, "for i, test := range %v_tests {\n", typ) fmt.Fprintf(w, " for j, x := range %v_vals {\n", typ) fmt.Fprintf(w, " want := test.exp.l\n") fmt.Fprintf(w, " if j == test.idx {\nwant = test.exp.e\n}") fmt.Fprintf(w, " else if j > test.idx {\nwant = test.exp.r\n}\n") fmt.Fprintf(w, " if test.fn(x) != want {\n") fmt.Fprintf(w, " fn := runtime.FuncForPC(reflect.ValueOf(test.fn).Pointer()).Name()\n")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 20 02:13:02 UTC 2022 - 6.4K bytes - Viewed (0) -
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/cmd/dist/buildgo.go
for i, os := range clangos { if i > 0 { fmt.Fprintf(&buf, ", ") } fmt.Fprintf(&buf, "%s", quote(os)) } fmt.Fprintf(&buf, ":\n") fmt.Fprintf(&buf, "\t\treturn %s\n", quote(clang)) fmt.Fprintf(&buf, "\t}\n") fmt.Fprintf(&buf, "\treturn %s\n", quote(gcc)) } fmt.Fprintf(&buf, "}\n") return buf.String() } // mkzcgo writes zcgo.go for the go/build package: // // package build
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 13 20:44:00 UTC 2023 - 4.3K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/allocators.go
fmt.Fprintf(w, "s = *sp\n") fmt.Fprintf(w, "*sp = nil\n") fmt.Fprintf(w, "c.hdr%s = append(c.hdr%s, sp)\n", a.name, a.name) } fmt.Fprintf(w, "}\n") if a.resize != "" { fmt.Fprintf(w, "s = %s\n", fmt.Sprintf(a.resize, "s", "n")) } fmt.Fprintf(w, "return s\n") fmt.Fprintf(w, "}\n") fmt.Fprintf(w, "func (c *Cache) free%s(s %s) {\n", a.name, a.typ) fmt.Fprintf(w, "%s\n", fmt.Sprintf(a.clear, "s"))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 23:34:11 UTC 2023 - 6.7K bytes - Viewed (0) -
src/cmd/go/testdata/script/list_importmap.txt
stdout '^flag \[fmt\.test\] MAP: map\[fmt:fmt \[fmt\.test\]\]' stdout '^fmt\.test MAP: map\[(.* )?testing:testing \[fmt\.test\]' ! stdout '^fmt\.test MAP: map\[(.* )?os:' stdout '^fmt\.test IMPORT: \[fmt \[fmt\.test\] fmt_test \[fmt\.test\] os reflect testing \[fmt\.test\] testing/internal/testdeps \[fmt\.test\]\]' -- a/b/b.go -- package b import _ "c/d"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 956 bytes - Viewed (0) -
src/debug/gosym/symtab_test.go
assertString(t, fmt.Sprintf("package of %q", s1.Name), s1.PackageName(), "main") assertString(t, fmt.Sprintf("package of %q", s2.Name), s2.PackageName(), "main") assertString(t, fmt.Sprintf("package of %q", s3.Name), s3.PackageName(), "a/b") assertString(t, fmt.Sprintf("package of %q", s4.Name), s4.PackageName(), "main") assertString(t, fmt.Sprintf("receiver of %q", s1.Name), s1.ReceiverName(), "")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 09 11:28:56 UTC 2022 - 4.3K bytes - Viewed (0) -
src/errors/example_test.go
func ExampleNew_errorf() { const name, id = "bimmler", 17 err := fmt.Errorf("user %q (id %d) not found", name, id) if err != nil { fmt.Print(err) } // Output: user "bimmler" (id 17) not found } func ExampleJoin() { err1 := errors.New("err1") err2 := errors.New("err2") err := errors.Join(err1, err2) fmt.Println(err) if errors.Is(err, err1) { fmt.Println("err is err1") } if errors.Is(err, err2) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 16 02:08:40 UTC 2023 - 2.2K bytes - Viewed (0) -
src/maps/example_test.go
"one": 10, } maps.Copy(m2, m1) fmt.Println("m2 is:", m2) m2["one"] = 100 fmt.Println("m1 is:", m1) fmt.Println("m2 is:", m2) m3 := map[string][]int{ "one": {1, 2, 3}, "two": {4, 5, 6}, } m4 := map[string][]int{ "one": {7, 8, 9}, } maps.Copy(m4, m3) fmt.Println("m4 is:", m4) m4["one"][0] = 100 fmt.Println("m3 is:", m3) fmt.Println("m4 is:", m4) // Output:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 11 20:21:56 UTC 2023 - 2.2K 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)