Skip to content

Commit 0402b97

Browse files
committed
write changelog for v0.3.0
While writing it, I also noticed that the second change for #73, where we now separate ") {" even if there's no empty line, wasn't documented in the README. It now is.
1 parent e676cd6 commit 0402b97

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# Changelog
22

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+
323
## [0.2.1] - 2021-12-12
424

525
This bugfix release resolves a number of issues:

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,19 @@ func foo() {
6363

6464
</details>
6565

66-
Functions using an empty line for readability should use a `) {` line instead
66+
Functions should separate `) {` where the indentation helps readability
6767

6868
<details><summary><i>example</i></summary>
6969

7070
```
7171
func foo(s string,
7272
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) {
7379
7480
println("bar")
7581
}
@@ -81,6 +87,13 @@ func foo(s string,
8187
) {
8288
println("bar")
8389
}
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+
}
8497
```
8598

8699
</details>

0 commit comments

Comments
 (0)