- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 221 for gofmt (0.1 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/go/testdata/script/fmt_load_errors.txt
go fmt -n exclude stdout 'exclude[/\\]x\.go' stdout 'exclude[/\\]x_linux\.go' # Test edge cases with gofmt. ! exec $GOROOT/bin/gofmt does-not-exist exec $GOROOT/bin/gofmt gofmt-dir/no-extension stdout 'package x' exec $GOROOT/bin/gofmt gofmt-dir ! stdout 'package x' ! exec $GOROOT/bin/gofmt empty.go nopackage.go stderr -count=1 'empty\.go:1:1: expected .package., found .EOF.'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 09:17:34 UTC 2022 - 775 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/gofmt/testdata/typeswitch.golden
// with unnamed (literal) types were never permitted by gofmt; // thus there won't be any code in the wild using this style if // the code was gofmt-ed. /* switch (x.(type)) { case []int: } */ switch t := x.(type) { // should remain the same default: _ = t } // Parenthesized (x.(type)) in type switches declaring a variable // were never permitted by gofmt; thus there won't be any code in
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 15 17:17:30 UTC 2022 - 1.4K bytes - Viewed (0) -
src/cmd/gofmt/gofmt_test.go
} t.Errorf("(gofmt %s) != %s (see %s.gofmt)\n%s", in, out, in, diff.Diff("expected", expected, "got", got)) if err := os.WriteFile(in+".gofmt", got, 0666); err != nil { t.Error(err) } } } // TestRewrite processes testdata/*.input files and compares them to the // corresponding testdata/*.golden files. The gofmt flags used to process
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 10 19:22:49 UTC 2022 - 4.3K bytes - Viewed (0)