1 [!gofumpt] skip 'don''t add or remove imports'
4 cmp foo.go foo.go.golden
6 gofumpt -d foo.go.golden
14 "io/ioutil" // if the user keeps them in the top group, obey that
19 "bufio" // the above is for a side effect; this one has a comment
38 // If they are in order, but with extra newlines, join them.
45 // We need to split std vs non-std in this case too.
53 // don't mess up this comment
60 // This used to crash gofumpt, as there's no space to insert an extra newline.
66 // All of the extra imports below are known to not belong in std.
67 // For example/ and test/, see https://golang.org/issue/37641.
80 "io/ioutil" // if the user keeps them in the top group, obey that
85 "bufio" // the above is for a side effect; this one has a comment
103 // If they are in order, but with extra newlines, join them.
109 // We need to split std vs non-std in this case too.
118 // don't mess up this comment
125 // This used to crash gofumpt, as there's no space to insert an extra newline.
132 // All of the extra imports below are known to not belong in std.
133 // For example/ and test/, see https://golang.org/issue/37641.