Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 23 of 23 for gofmt (0.75 sec)

  1. src/cmd/go/internal/help/helpdoc.go

    building the package for Windows; similarly, math_386.s will be included
    only when building the package for 32-bit x86.
    
    Go versions 1.16 and earlier used a different syntax for build constraints,
    with a "// +build" prefix. The gofmt command will add an equivalent //go:build
    constraint when encountering the older syntax.
    `,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  2. 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)
  3. 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