X7ROOT File Manager
Current Path:
/opt/golang/1.19.4/src/cmd/gofmt/testdata
opt
/
golang
/
1.19.4
/
src
/
cmd
/
gofmt
/
testdata
/
📁
..
📄
comments.golden
(76 B)
📄
comments.input
(76 B)
📄
composites.golden
(2.54 KB)
📄
composites.input
(3.16 KB)
📄
crlf.golden
(230 B)
📄
crlf.input
(243 B)
📄
emptydecl.golden
(140 B)
📄
emptydecl.input
(148 B)
📄
go2numbers.golden
(1.9 KB)
📄
go2numbers.input
(1.96 KB)
📄
import.golden
(2.1 KB)
📄
import.input
(2.1 KB)
📄
issue28082.golden
(249 B)
📄
issue28082.input
(447 B)
📄
ranges.golden
(307 B)
📄
ranges.input
(304 B)
📄
rewrite1.golden
(248 B)
📄
rewrite1.input
(248 B)
📄
rewrite10.golden
(350 B)
📄
rewrite10.input
(350 B)
📄
rewrite2.golden
(407 B)
📄
rewrite2.input
(406 B)
📄
rewrite3.golden
(422 B)
📄
rewrite3.input
(422 B)
📄
rewrite4.golden
(1.04 KB)
📄
rewrite4.input
(1.12 KB)
📄
rewrite5.golden
(446 B)
📄
rewrite5.input
(538 B)
📄
rewrite6.golden
(463 B)
📄
rewrite6.input
(463 B)
📄
rewrite7.golden
(466 B)
📄
rewrite7.input
(472 B)
📄
rewrite8.golden
(292 B)
📄
rewrite8.input
(300 B)
📄
rewrite9.golden
(228 B)
📄
rewrite9.input
(238 B)
📄
slices1.golden
(927 B)
📄
slices1.input
(957 B)
📄
stdin1.golden
(32 B)
📄
stdin1.input
(32 B)
📄
stdin2.golden
(101 B)
📄
stdin2.input
(101 B)
📄
stdin3.golden
(101 B)
📄
stdin3.input
(96 B)
📄
stdin4.golden
(38 B)
📄
stdin4.input
(39 B)
📄
stdin5.golden
(55 B)
📄
stdin5.input
(54 B)
📄
stdin6.golden
(199 B)
📄
stdin6.input
(217 B)
📄
stdin7.golden
(342 B)
📄
stdin7.input
(296 B)
📄
tabs.golden
(480 B)
📄
tabs.input
(449 B)
📄
typealias.golden
(365 B)
📄
typealias.input
(360 B)
📄
typeparams.golden
(680 B)
📄
typeparams.input
(677 B)
📄
typeswitch.golden
(1.43 KB)
📄
typeswitch.input
(1.43 KB)
Editing: import.input
// package comment package main import ( "fmt" "math" "log" "errors" "io" ) import ( "fmt" "math" "log" "errors" "io" ) // We reset the line numbering to test that // the formatting works independent of line directives //line :19 import ( "fmt" "math" "log" "errors" "io" "fmt" "math" "log" "errors" "io" ) import ( // a block with comments "fmt" // for Printf "math" "log" // for Fatal "errors" "io" // for Reader ) import ( "fmt" // for Printf "math" "log" // for Fatal "errors" "io" // for Reader ) import ( // for Printf "fmt" "math" // for Fatal "log" "errors" // for Reader "io" ) import ( "fmt" // for Printf "math" "log" // for Fatal "errors" "io" // for Reader "fmt" // for Printf "math" "log" // for Fatal "errors" "io" // for Reader ) import ( "fmt" // for Printf "math" "log" // for Fatal "errors" "io" // for Reader "fmt" // for Printf "math" "log" // for Fatal "errors" "io" // for Reader ) // Test deduping and extended sorting import ( "B" // B a "A" // aA b "A" // bA2 b "A" // bA1 . "B" // .B . "B" "C" "C" "C" a "D" // aD "B" _ "B" // _b ) import ( "dedup_by_group" "dedup_by_group" "dedup_by_group" ) import ( /* comment */ io1 "io" "fmt" // for Printf /* comment */ "log" /* comment */ io2 "io" ) import ( /* comment */ io2 "io" // hello /* comment */ io1 "io" "math" /* right side */ "fmt" // end ) import ( /* comment */ io1 "io" /* before */ // after "fmt" "errors" // for New io2 "io" // another // end ) import ( /* left */ "fmt" /* right */ "errors" // for New /* left */ "math" /* right */ "log" // for Fatal ) import /* why */ /* comment here? */ ( /* comment */ "fmt" "math" ) // Reset it again //line :100 // Dedup with different import styles import ( "path" . "path" _ "path" "path" pathpkg "path" ) /* comment */ import ( "math" // for Abs "fmt" // This is a new run "errors" "fmt" "errors" ) // End an import declaration in the same line // as the last import. See golang.org/issue/33538. // Note: Must be the last (or 2nd last) line of the file. import("fmt" "math")
Upload File
Create Folder