File tree Expand file tree Collapse file tree 2 files changed +34
-1
lines changed Expand file tree Collapse file tree 2 files changed +34
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## [ 0.3.0] - 2022-02-22
4
+
5
+ This is gofumpt's third major release, based on Go 1.18's gofmt.
6
+ The jump from Go 1.17's gofmt should bring a noticeable speed-up,
7
+ as the tool can now format many files concurrently.
8
+ On an 8-core laptop, formatting a large codebase is 4x as fast.
9
+
10
+ The following [ formatting rules] ( https://github.com/mvdan/gofumpt#Added-rules ) are added:
11
+
12
+ * Functions should separate ` ) { ` where the indentation helps readability
13
+ * Field lists should not have leading or trailing empty lines
14
+
15
+ The following changes are included as well:
16
+
17
+ * Generated files are now fully formatted when given as explicit arguments
18
+ * Prepare for Go 1.18's module workspaces, which could cause errors
19
+ * Import paths sharing a prefix with the current module path are no longer
20
+ grouped with standard library imports
21
+ * ` format.Options ` gains a ` ModulePath ` field per the last bullet point
22
+
3
23
## [ 0.2.1] - 2021-12-12
4
24
5
25
This bugfix release resolves a number of issues:
Original file line number Diff line number Diff line change @@ -63,13 +63,19 @@ func foo() {
63
63
64
64
</details >
65
65
66
- Functions using an empty line for readability should use a ` ) { ` line instead
66
+ Functions should separate ` ) { ` where the indentation helps readability
67
67
68
68
<details ><summary ><i >example</i ></summary >
69
69
70
70
```
71
71
func foo(s string,
72
72
i int) {
73
+ println("bar")
74
+ }
75
+
76
+ // With an empty line it's slightly better, but still not great.
77
+ func bar(s string,
78
+ i int) {
73
79
74
80
println("bar")
75
81
}
@@ -81,6 +87,13 @@ func foo(s string,
81
87
) {
82
88
println("bar")
83
89
}
90
+
91
+ // With an empty line it's slightly better, but still not great.
92
+ func bar(s string,
93
+ i int,
94
+ ) {
95
+ println("bar")
96
+ }
84
97
```
85
98
86
99
</details >
You can’t perform that action at this time.
0 commit comments