- Sort Score
- Result 10 results
- Languages All
Results 21 - 26 of 26 for gofmt (0.06 sec)
-
src/go/printer/gobuild.go
p.output = append(p.output, block...) p.output = append(p.output, after...) } // appendLines is like append(x, y...) // but it avoids creating doubled blank lines, // which would not be gofmt-standard output. // It assumes that only whole blocks of lines are being appended, // not line fragments. func appendLines(x, y []byte) []byte { if len(y) > 0 && isNL(y[0]) && // y starts in blank line
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 4.6K bytes - Viewed (0) -
src/go/doc/comment/testdata_test.go
want = want[:len(want)-1] } var out []byte switch f.Name { default: t.Fatalf("unknown output file %q", f.Name) case "dump": out = dump(d) case "gofmt": out = pr.Comment(d) case "html": out = pr.HTML(d) case "markdown": out = pr.Markdown(d) case "text": out = pr.Text(d) } if string(out) != string(want) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 4.5K bytes - Viewed (0) -
cmd/kube-apiserver/app/options/options.go
func (s *ServerRunOptions) Flags() (fss cliflag.NamedFlagSets) { s.Options.AddFlags(&fss) s.CloudProvider.AddFlags(fss.FlagSet("cloud provider")) // Note: the weird ""+ in below lines seems to be the only way to get gofmt to // arrange these text blocks sensibly. Grrr. fs := fss.FlagSet("misc") fs.BoolVar(&s.AllowPrivileged, "allow-privileged", s.AllowPrivileged, "If true, allow privileged containers. [default=false]")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 27 12:19:56 UTC 2024 - 6.5K bytes - Viewed (0) -
hack/make-rules/verify.sh
# These ideally run in less than 10s. QUICK_PATTERNS+=( "verify-api-groups.sh" "verify-boilerplate.sh" "verify-external-dependencies-version.sh" "verify-fieldname-docs.sh" "verify-gofmt.sh" "verify-imports.sh" "verify-non-mutating-validation.sh" "verify-pkg-names.sh" "verify-readonly-packages.sh" "verify-spelling.sh" "verify-staging-client-go.sh" "verify-staging-meta-files.sh"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 07 12:24:15 UTC 2024 - 6.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/allocators.go
genAllocator(w, a) } for _, d := range deriveds { for _, base := range allocators { if base.name == d.base { genDerived(w, d, base) break } } } // gofmt result b := w.Bytes() var err error b, err = format.Source(b) if err != nil { fmt.Printf("%s\n", w.Bytes()) panic(err) } if err := os.WriteFile("../allocators.go", b, 0666); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 23:34:11 UTC 2023 - 6.7K bytes - Viewed (0) -
src/go/doc/comment/print.go
} cp.block(&out, x) } // Print one block containing all the link definitions that were used, // and then a second block containing all the unused ones. // This makes it easy to clean up the unused ones: gofmt and // delete the final block. And it's a nice visual signal without // affecting the way the comment formats for users. for i := 0; i < 2; i++ { used := i == 0 first := true for _, def := range d.Links {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 7.6K bytes - Viewed (0)