Skip to content

Commit 9a108c1

Browse files
committed
add Go 1.21, drop 1.19
1 parent 14bdb88 commit 9a108c1

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
test:
55
strategy:
66
matrix:
7-
go-version: [1.19.x, 1.20.x]
7+
go-version: [1.20.x, 1.21.x]
88
os: [ubuntu-latest, macos-latest, windows-latest]
99
runs-on: ${{ matrix.os }}
1010
steps:
@@ -17,7 +17,7 @@ jobs:
1717

1818
# Static checks from this point forward. Only run on one Go version and on
1919
# Linux, since it's the fastest platform, and the tools behave the same.
20-
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.20.x'
20+
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.21.x'
2121
run: diff <(echo -n) <(gofmt -s -d .)
22-
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.20.x'
22+
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.21.x'
2323
run: go vet ./...

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
Enforce a stricter format than `gofmt`, while being backwards compatible.
88
That is, `gofumpt` is happy with a subset of the formats that `gofmt` is happy with.
99

10-
The tool is a fork of `gofmt` as of Go 1.20, and requires Go 1.19 or later.
10+
The tool is a fork of `gofmt` as of Go 1.21, and requires Go 1.20 or later.
1111
It can be used as a drop-in replacement to format your Go code,
1212
and running `gofmt` after `gofumpt` should produce no changes.
1313
For example:
1414

1515
gofumpt -l -w .
1616

1717
Some of the Go source files in this repository belong to the Go project.
18-
The project includes copies of `go/printer` and `go/doc/comment` as of Go 1.20
18+
The project includes copies of `go/printer` and `go/doc/comment` as of Go 1.21
1919
to ensure consistent formatting independent of what Go version is being used.
2020
The [added formatting rules](#Added-rules) are implemented in the `format` package.
2121

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module mvdan.cc/gofumpt
22

3-
go 1.19
3+
go 1.20
44

55
require (
66
github.com/frankban/quicktest v1.14.5

0 commit comments

Comments
 (0)