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
31 func c_open(name *byte, mode int, perm int) int
35 //sys Unlink(path string) (err error)
37 //sysnb Getpid() (pid int)
42 // comment with a tab.
44 // comment with many spaces
53 //this is probably code
66 //go:generate some command
74 //nolint // explanation
76 //nolint:somelinter // explanation
78 // not actually: a directive
85 func c_open(name *byte, mode int, perm int) int
89 //sys Unlink(path string) (err error)
91 //sysnb Getpid() (pid int)
96 // comment with a tab.
98 // comment with many spaces
107 //this is probably code