Commit 9a108c1 1 parent 14bdb88 commit 9a108c1 Copy full SHA for 9a108c1
File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 4
4
test :
5
5
strategy :
6
6
matrix :
7
- go-version : [1.19 .x, 1.20 .x]
7
+ go-version : [1.20 .x, 1.21 .x]
8
8
os : [ubuntu-latest, macos-latest, windows-latest]
9
9
runs-on : ${{ matrix.os }}
10
10
steps :
17
17
18
18
# Static checks from this point forward. Only run on one Go version and on
19
19
# 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'
21
21
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'
23
23
run : go vet ./...
Original file line number Diff line number Diff line change 7
7
Enforce a stricter format than ` gofmt ` , while being backwards compatible.
8
8
That is, ` gofumpt ` is happy with a subset of the formats that ` gofmt ` is happy with.
9
9
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.
11
11
It can be used as a drop-in replacement to format your Go code,
12
12
and running ` gofmt ` after ` gofumpt ` should produce no changes.
13
13
For example:
14
14
15
15
gofumpt -l -w .
16
16
17
17
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
19
19
to ensure consistent formatting independent of what Go version is being used.
20
20
The [ added formatting rules] ( #Added-rules ) are implemented in the ` format ` package.
21
21
Original file line number Diff line number Diff line change 1
1
module mvdan.cc/gofumpt
2
2
3
- go 1.19
3
+ go 1.20
4
4
5
5
require (
6
6
github.com/frankban/quicktest v1.14.5
You can’t perform that action at this time.
0 commit comments