Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 55 of 55 for gofmt (0.06 sec)

  1. src/cmd/compile/internal/ssa/_gen/rulegen.go

    	// Write the well-formatted source to file
    	f, err := os.Create("../rewrite" + arch.name + suff + ".go")
    	if err != nil {
    		log.Fatalf("can't write output: %v", err)
    	}
    	defer f.Close()
    	// gofmt result; use a buffered writer, as otherwise go/format spends
    	// far too much time in syscalls.
    	bw := bufio.NewWriter(f)
    	if err := format.Node(bw, fset, file); err != nil {
    		log.Fatalf("can't format output: %v", err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
  2. src/cmd/cgo/out.go

    		if ok && id.Name == "unsafe" && t.Sel.Name == "Pointer" {
    			return &Type{Size: p.PtrSize, Align: p.PtrSize, C: c("void*")}
    		}
    	}
    	error_(e.Pos(), "Go type not supported in export: %s", gofmt(e))
    	return &Type{Size: 4, Align: 4, C: c("int")}
    }
    
    const gccProlog = `
    #line 1 "cgo-gcc-prolog"
    /*
      If x and y are not equal, the type will be invalid
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  3. src/go/parser/parser.go

    		slice3 := false
    		if ncolons == 2 {
    			slice3 = true
    			// Check presence of middle and final index here rather than during type-checking
    			// to prevent erroneous programs from passing through gofmt (was go.dev/issue/7305).
    			if index[1] == nil {
    				p.error(colons[0], "middle index required in 3-index slice")
    				index[1] = &ast.BadExpr{From: colons[0] + 1, To: colons[1]}
    			}
    			if index[2] == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  4. src/cmd/go/go_test.go

    	// The link action ID did not include the full main build ID,
    	// even though the full main build ID is written into the
    	// eventual binary. That caused the following install to
    	// be a no-op, thinking the gofmt binary was up-to-date,
    	// even though .Stale could see it was not.
    	tg.tempFile("src/m/main.go", "package main /* c2 */; func main() {}\n")
    	tg.run("install", "-x", "m")
    	tg.run("list", "-f", "{{.Stale}}", "m")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  5. src/cmd/go/internal/load/pkg.go

    		return StalePath
    	}
    	if p.Goroot && strings.HasPrefix(p.ImportPath, "cmd/") && p.Name == "main" {
    		switch p.ImportPath {
    		case "cmd/go", "cmd/gofmt":
    			return ToBin
    		}
    		return ToTool
    	}
    	return ToBin
    }
    
    var cgoExclude = map[string]bool{
    	"runtime/cgo": true,
    }
    
    var cgoSyscallExclude = map[string]bool{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
Back to top