Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for gofmt (0.12 sec)

  1. src/cmd/cgo/gcc.go

    			error_(r.Pos(), "must call C.%s", fixGo(r.Name.Go))
    		}
    	}
    	return expr
    }
    
    // gofmtPos returns the gofmt-formatted string for an AST node,
    // with a comment setting the position before the node.
    func gofmtPos(n ast.Expr, pos token.Pos) string {
    	s := gofmt(n)
    	p := fset.Position(pos)
    	if p.Column == 0 {
    		return s
    	}
    	return fmt.Sprintf("/*line :%d:%d*/%s", p.Line, p.Column, s)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  2. src/cmd/dist/build.go

    		checkNotStale(toolenv(), goBootstrap, toolchain...)
    		copyfile(pathf("%s/compile4", tooldir), pathf("%s/compile", tooldir), writeExec)
    	}
    
    	// Check that there are no new files in $GOROOT/bin other than
    	// go and gofmt and $GOOS_$GOARCH (target bin when cross-compiling).
    	binFiles, err := filepath.Glob(pathf("%s/bin/*", goroot))
    	if err != nil {
    		fatalf("glob: %v", err)
    	}
    
    	ok := map[string]bool{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  3. hack/tools/go.sum

    github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe/go.mod h1:gjqyPShc/m8pEMpk0a3SeagVb0kaqvhscv+i9jI5ZhQ=
    github.com/golangci/gofmt v0.0.0-20231018234816-f50ced29576e h1:ULcKCDV1LOZPFxGZaA6TlQbiM3J2GCPnkx/bGF6sX/g=
    github.com/golangci/gofmt v0.0.0-20231018234816-f50ced29576e/go.mod h1:Pm5KhLPA8gSnQwrQ6ukebRcapGb/BG9iUkdaiCcGHJM=
    github.com/golangci/golangci-lint v1.56.2 h1:dgQzlWHgNbCqJjuxRJhFEnHDVrrjuTGQHJ3RIZMpp/o=
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 93.1K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
Back to top