- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for gofmt (0.04 sec)
-
src/cmd/gofmt/gofmt.go
// printerNormalizeNumbers means to canonicalize number literal prefixes // and exponents while printing. See https://golang.org/doc/go1.13#gofmt. // // This value is defined in go/printer specifically for go/format and cmd/gofmt. printerNormalizeNumbers = 1 << 30 ) // fdSem guards the number of concurrently-open file descriptors. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 15.1K bytes - Viewed (0) -
src/cmd/fix/typecheck.go
if isTopName(n.Fun, "make") && len(n.Args) >= 1 { typeof[n] = gofmt(n.Args[0]) return } // new(T) has type *T if isTopName(n.Fun, "new") && len(n.Args) == 1 { typeof[n] = "*" + gofmt(n.Args[0]) return } // Otherwise, use type of function to determine arguments. t := typeof[n.Fun] if t == "" { t = cfg.External[gofmt(n.Fun)] } in, out := splitFunc(t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 16 22:02:42 UTC 2022 - 20.1K bytes - Viewed (0) -
src/cmd/go/internal/work/buildid.go
// binaries. For a binary, like cmd/gofmt, there are two steps: compile // cmd/gofmt/*.go into main.a, and then link main.a into the gofmt binary. // We do not install gofmt's main.a, only the gofmt binary. Being able to // decide that the gofmt binary is up-to-date means computing the action ID // for the final link of the gofmt binary and comparing it against the // already-installed gofmt binary. But computing the action ID for the link
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:31:25 UTC 2024 - 26.2K bytes - Viewed (0) -
src/syscall/mkall.sh
exit 1 ;; esac ( if [ -n "$mkerrors" ]; then echo "$mkerrors |gofmt >$zerrors"; fi syscall_goos="syscall_$GOOS.go" case "$GOOS" in darwin | dragonfly | freebsd | netbsd | openbsd) syscall_goos="syscall_bsd.go $syscall_goos" ;; esac if [ -n "$mksyscall" ]; then echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go"; fi
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 06 18:22:23 UTC 2023 - 14.6K bytes - Viewed (0) -
src/cmd/distpack/pack.go
case "api", "dist", "distpack", "metadata": return false } } return true }) // Add go and gofmt to bin, using cross-compiled binaries // if this is a cross-compiled distribution. binExes := []string{ "go", "gofmt", } crossBin := "bin" if goos != gohostos || goarch != gohostarch { crossBin = "bin/" + goosUnderGoarch } for _, b := range binExes {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 10.9K bytes - Viewed (0) -
src/go/printer/testdata/comments.golden
var _ = []T{ // lone comments // in composite lit } var _ = [][]T{ { // lone comments // in composite lit }, } // TODO: gofmt doesn't add these tabs; make it so that these golden // tests run the printer in a way that it's exactly like gofmt. var _ = []T{ // lone comment } var _ = []T{ // lone comments // in composite lit } func _() {} func _() {}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 25 23:11:14 UTC 2022 - 11.3K bytes - Viewed (0) -
src/go/printer/testdata/comments.input
var _ = []T{ // lone comments // in composite lit } var _ = [][]T{ { // lone comments // in composite lit }, } // TODO: gofmt doesn't add these tabs; make it so that these golden // tests run the printer in a way that it's exactly like gofmt. var _ = []T{// lone comment } var _ = []T{// lone comments // in composite lit } func _() {} // func _() {}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 25 23:11:14 UTC 2022 - 11.3K bytes - Viewed (0) -
src/cmd/cover/cover_test.go
lines[i] = bytes.ReplaceAll(line, []byte("LINE"), []byte(fmt.Sprint(i+1))) } // Add a function that is not gofmt'ed. This used to cause a crash. // We don't put it in test.go because then we would have to gofmt it. // Issue 23927. lines = append(lines, []byte("func unFormatted() {"), []byte("\tif true {"), []byte("\t}else{"), []byte("\t}"), []byte("}"))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 07 16:54:28 UTC 2023 - 18.4K bytes - Viewed (0) -
src/go/printer/printer.go
// unexported, it's also possible to modify or remove it based on // the evolving needs of go/format and cmd/gofmt without breaking // users. See discussion in CL 240683. const ( // normalizeNumbers means to canonicalize number // literal prefixes and exponents while printing. // // This value is known in and used by go/format and cmd/gofmt. // It is currently more convenient and performant for those
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 41.6K bytes - Viewed (0) -
hack/tools/go.mod
github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a // indirect github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe // indirect github.com/golangci/gofmt v0.0.0-20231018234816-f50ced29576e // indirect github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0 // indirect github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca // indirect
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 10.1K bytes - Viewed (0)