- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 116 for gofmt (0.06 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) -
hack/verify-gofmt.sh
# limitations under the License. # This script checks whether the source code needs to be formatted or not by # `gofmt`. Run `hack/update-gofmt.sh` to actually format sources. # # Note: gofmt output can change between go versions. # # Usage: `hack/verify-gofmt.sh`. set -o errexit set -o nounset set -o pipefail KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. source "${KUBE_ROOT}/hack/lib/init.sh"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:07:31 UTC 2024 - 1.8K bytes - Viewed (0) -
hack/update-gofmt.sh
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # GoFmt apparently is changing @ head... set -o errexit set -o nounset set -o pipefail KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. source "${KUBE_ROOT}/hack/lib/init.sh" kube::golang::setup_env
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:56 UTC 2024 - 1.4K bytes - Viewed (0) -
src/cmd/go/internal/fmtcmd/fmt.go
to use: readonly or vendor. See 'go help modules' for more. To run gofmt with specific options, run gofmt itself. See also: go fix, go vet. `, } func runFmt(ctx context.Context, cmd *base.Command, args []string) { printed := false gofmt := gofmtPath() gofmtArgs := []string{gofmt, "-l", "-w"} gofmtArgLen := len(gofmt) + len(" -l -w") baseGofmtArgs := len(gofmtArgs) baseGofmtArgLen := gofmtArgLen
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 03 12:16:35 UTC 2022 - 3K bytes - Viewed (0) -
src/regexp/syntax/make_perl_groups.pl
} print "}\n"; my $count = @entries; } # Prepare gofmt command my $gofmt; if (@ARGV > 0 && $ARGV[0] =~ /\.go$/) { # Send the output of gofmt to the given file open($gofmt, '|-', 'gofmt >'.$ARGV[0]) or die; } else { open($gofmt, '|-', 'gofmt') or die; } # Redirect STDOUT to gofmt input select $gofmt; print <<EOF; // Copyright 2013 The Go Authors. All rights reserved.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 13:59:01 UTC 2024 - 2.6K bytes - Viewed (0) -
src/cmd/gofmt/long_test.go
fmt.Fprintf(os.Stderr, "ignoring %s\n", err) } return } // gofmt file if err = gofmt(fset, filename, b1); err != nil { t.Errorf("1st gofmt failed: %v", err) return } // make a copy of the result b2.Reset() b2.Write(b1.Bytes()) // gofmt result again if err = gofmt(fset, filename, b2); err != nil { t.Errorf("2nd gofmt failed: %v", err) return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 20:27:28 UTC 2023 - 3.8K bytes - Viewed (0) -
src/cmd/go/testdata/script/build_output.txt
! exists p.exe wait # for isarchive go build -o p.a p.go exists p.a exec $GOBIN/isarchive p.a go build cmd/gofmt exists -exec gofmt$GOEXE rm gofmt$GOEXE ! exists gofmt$NONEXE go build -o mygofmt cmd/gofmt exists -exec mygofmt ! exists mygofmt.exe ! exists gofmt ! exists gofmt.exe go build sync/atomic ! exists atomic ! exists atomic.exe go build -o myatomic.a sync/atomic exists myatomic.a
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 1.8K bytes - Viewed (0) -
src/cmd/distpack/test.go
{name: "go/bin/go", goos: "darwin"}, {name: "go/bin/go", goos: "windows", exclude: true}, {name: "go/bin/go.exe", goos: "windows"}, {name: "go/bin/gofmt", goos: "linux"}, {name: "go/bin/gofmt", goos: "darwin"}, {name: "go/bin/gofmt", goos: "windows", exclude: true}, {name: "go/bin/gofmt.exe", goos: "windows"}, {name: "go/pkg/tool/*/compile", goos: "linux"}, {name: "go/pkg/tool/*/compile", goos: "darwin"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 01 22:29:19 UTC 2023 - 5.3K bytes - Viewed (0) -
src/cmd/go/testdata/script/repro_build.txt
cmp -q http16.o http18.o # Check that goroutine scheduling does not affect linker output. env GOMAXPROCS=16 go build -a -o gofmt16.exe cmd/gofmt env GOMAXPROCS=17 go build -a -o gofmt17.exe cmd/gofmt cmp -q gofmt16.exe gofmt17.exe env GOMAXPROCS=18 go build -a -o gofmt18.exe cmd/gofmt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 13 18:59:19 UTC 2023 - 686 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/mkall.sh
echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in && gofmt -w zsyscall_$GOOSARCH.go && gofmt -w zsyscall_"$GOOSARCH"_gccgo.go && gofmt -w zsyscall_"$GOOSARCH"_gc.go " ; elif [ "$GOOS" == "illumos" ]; then # illumos code generation requires a --illumos switch echo "$mksyscall -illumos -tags illumos,$GOARCH syscall_illumos.go |gofmt > zsyscall_illumos_$GOARCH.go";
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 13 21:37:23 UTC 2023 - 8.1K bytes - Viewed (0)