- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 185 for gofmt (0.04 sec)
-
src/go/doc/comment/testdata/code5.txt
-- input -- L1 L2 L3 L4 L5 - L6 { L7 } L8 -- gofmt -- L1 L2 L3 L4 L5 - L6 { L7 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 06 20:47:52 UTC 2022 - 96 bytes - Viewed (0) -
src/go/doc/comment/testdata/list4.txt
-- input -- Text. 1. List 2. Not indented, not a list. 3. Another list. -- gofmt -- Text. 1. List 2. Not indented, not a list. 3. Another list. -- text -- Text. 1. List 2. Not indented, not a list. 3. Another list. -- markdown -- Text. 1. List 2\. Not indented, not a list. 3. Another list. -- html -- <p>Text. <ol> <li>List </ol>
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:31:48 UTC 2022 - 421 bytes - Viewed (0) -
src/cmd/gofmt/internal.go
indent = 0 } // Remove the wrapping. // Gofmt has turned the "; " into a "\n\n". // There will be two non-blank lines with indent, hence 2*indent. src = src[2*indent+len("package p\n\nfunc _() {"):] // Remove only the "}\n" suffix: remaining whitespaces will be trimmed anyway src = src[:len(src)-len("}\n")] return bytes.TrimSpace(src) } // Gofmt has also indented the function body one level.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 28 14:23:08 UTC 2020 - 5K bytes - Viewed (0) -
src/cmd/gofmt/testdata/rewrite7.input
//gofmt -r=fun(x...)->Fun(x) // Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Rewriting of calls must take the ... (ellipsis) // attribute for the last argument into account. package p func fun(x []int) {} func g(x []int) { fun(x) // -r='fun(x...)->Fun(x)' should not rewrite this
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 22 00:25:13 UTC 2014 - 472 bytes - Viewed (0) -
src/cmd/gofmt/testdata/emptydecl.golden
//gofmt -s // Test case for issue 7631. package main // Keep this declaration var () const ( // Keep this declaration )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 22 00:25:13 UTC 2014 - 140 bytes - Viewed (0) -
src/cmd/gofmt/testdata/rewrite5.golden
//gofmt -r=x+x->2*x // Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Rewriting of expressions containing nodes with associated comments to // expressions without those nodes must also eliminate the associated // comments. package p func f(x int) int { _ = 2 * x // this comment remains in the rewrite _ = 2 * x return 2 * x
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 22 00:25:13 UTC 2014 - 446 bytes - Viewed (0) -
src/go/doc/comment/testdata/quote.txt
-- input -- Doubled single quotes like `` and '' turn into Unicode double quotes, but single quotes ` and ' do not. Misplaced markdown fences ``` do not either. -- gofmt -- Doubled single quotes like “ and ” turn into Unicode double quotes, but single quotes ` and ' do not. Misplaced markdown fences ``` do not either. -- text -- Doubled single quotes like “ and ” turn into Unicode double quotes, but single
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 06 19:06:16 UTC 2022 - 656 bytes - Viewed (0) -
src/cmd/gofmt/testdata/stdin6.input
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 30 00:04:48 UTC 2014 - 217 bytes - Viewed (0) -
src/cmd/gofmt/testdata/stdin7.input
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 30 00:04:48 UTC 2014 - 296 bytes - Viewed (0) -
src/cmd/gofmt/testdata/rewrite6.golden
//gofmt -r=fun(x)->Fun(x) // Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Rewriting of calls must take the ... (ellipsis) // attribute for the last argument into account. package p func fun(x []int) {} func g(x []int) { Fun(x) // -r='fun(x)->Fun(x)' should rewrite this to Fun(x)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 22 00:25:13 UTC 2014 - 463 bytes - Viewed (0)