Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 5,349 for fmtE (0.04 sec)

  1. 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)
  2. src/image/color/palette/gen.go

    	fmt.Fprintln(&buf)
    	fmt.Fprintln(&buf, "// Code generated by go run gen.go -output palette.go; DO NOT EDIT.")
    	fmt.Fprintln(&buf)
    	fmt.Fprintln(&buf, "package palette")
    	fmt.Fprintln(&buf)
    	fmt.Fprintln(&buf, `import "image/color"`)
    	fmt.Fprintln(&buf)
    	printPlan9(&buf)
    	printWebSafe(&buf)
    
    	data, err := format.Source(buf.Bytes())
    	if err != nil {
    		log.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/path/example_test.go

    	fmt.Println(path.Join("a", "b", "c"))
    	fmt.Println(path.Join("a", "b/c"))
    	fmt.Println(path.Join("a/b", "c"))
    
    	fmt.Println(path.Join("a/b", "../../../xyz"))
    
    	fmt.Println(path.Join("", ""))
    	fmt.Println(path.Join("a", ""))
    	fmt.Println(path.Join("", "a"))
    
    	// Output:
    	// a/b/c
    	// a/b/c
    	// a/b/c
    	// ../xyz
    	//
    	// a
    	// a
    }
    
    func ExampleMatch() {
    	fmt.Println(path.Match("abc", "abc"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 19 00:10:22 UTC 2020
    - 2.2K bytes
    - Viewed (0)
  9. test/fixedbugs/bug260.go

    		if report {
    			fmt.Println("alignment should be 1, is", a1-a0)
    		}
    		status = 1
    	}
    	var b2 [10]T2
    	a0, _ = strconv.ParseUint(fmt.Sprintf("%p", &b2[0])[2:], 16, 64)
    	a1, _ = strconv.ParseUint(fmt.Sprintf("%p", &b2[1])[2:], 16, 64)
    	if a1 != a0+2 {
    		if status == 0 {
    			fmt.Println("FAIL")
    			status = 1
    		}
    		if report {
    			fmt.Println("alignment should be 2, is", a1-a0)
    		}
    	}
    	var b4 [10]T4
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 1.3K bytes
    - Viewed (0)
  10. test/defererrcheck.go

    		fmt.Println("defer2")
    	}()
    }
    
    func f3() {
    	defer func() { // ERROR "stack-allocated defer"
    		fmt.Println("defer2")
    	}()
    	for {
    		defer func() { // ERROR "heap-allocated defer"
    			fmt.Println("defer1")
    		}()
    		if glob > 2 {
    			break
    		}
    	}
    }
    
    func f4() {
    	defer func() { // ERROR "open-coded defer"
    		fmt.Println("defer")
    	}()
    label:
    	fmt.Println("goto loop")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 26 16:54:17 UTC 2020
    - 1.4K bytes
    - Viewed (0)
Back to top