2 cmp foo.go foo.go.golden
4 gofumpt -d foo.go.golden
12 //go:generate some command
20 //nolint // explanation
22 //nolint:somelinter // explanation
24 //not actually: a directive
26 //https://just.one/url
33 func c_open(name *byte, mode int, perm int) int
37 //sys Unlink(path string) (err error)
39 //sysnb Getpid() (pid int)
44 // comment with a tab.
46 // comment with many spaces
55 //this is probably code
68 //go:generate some command
76 //nolint // explanation
78 //nolint:somelinter // explanation
80 // not actually: a directive
82 // https://just.one/url
89 func c_open(name *byte, mode int, perm int) int
93 //sys Unlink(path string) (err error)
95 //sysnb Getpid() (pid int)
100 // comment with a tab.
102 // comment with many spaces
111 //this is probably code