File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
testdata/gofumpt-external Expand file tree Collapse file tree 4 files changed +7
-7
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.22 .x, 1.23 .x]
7
+ go-version : [1.23 .x, 1.24 .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.23 .x'
20
+ - if : matrix.os == 'ubuntu-latest' && matrix.go-version == '1.24 .x'
21
21
run : diff <(echo -n) <(gofmt -s -d .)
22
- - if : matrix.os == 'ubuntu-latest' && matrix.go-version == '1.23 .x'
22
+ - if : matrix.os == 'ubuntu-latest' && matrix.go-version == '1.24 .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.23 .0, and requires Go 1.22 or later.
10
+ The tool is a fork of ` gofmt ` as of Go 1.24 .0, and requires Go 1.23 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.23 .0
18
+ The project includes copies of ` go/printer ` and ` go/doc/comment ` as of Go 1.24 .0
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.22.0
3
+ go 1.23
4
4
5
5
require (
6
6
github.com/go-quicktest/qt v1.101.0
Original file line number Diff line number Diff line change 1
1
module test/gofumpt-external
2
2
3
- go 1.22
3
+ go 1.23
4
4
5
5
require mvdan.cc/gofumpt v0.6.1-0.20240717113859-88a300bbd6dc
6
6
You can’t perform that action at this time.
0 commit comments