Skip to content

Commit 1e52eb3

Browse files
committed
internal/govendor: re-generate with go1.23.0
No relevant changes to cmd/gofmt between go1.22.0 and go1.23.0
1 parent 038012a commit 1e52eb3

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

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.22, and requires Go 1.21 or later.
10+
The tool is a fork of `gofmt` as of Go 1.23.0, and requires Go 1.22 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.22
18+
The project includes copies of `go/printer` and `go/doc/comment` as of Go 1.23.0
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

internal/govendor/go/doc/comment/std.go

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/govendor/go/printer/gobuild.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package printer
66

77
import (
88
"go/build/constraint"
9-
"sort"
9+
"slices"
1010
"text/tabwriter"
1111
)
1212

@@ -108,7 +108,7 @@ func (p *printer) fixGoBuildLines() {
108108

109109
// Build sorted list of lines to delete from remainder of output.
110110
toDelete := append(p.goBuild, p.plusBuild...)
111-
sort.Ints(toDelete)
111+
slices.Sort(toDelete)
112112

113113
// Collect output after insertion point, with lines deleted, into after.
114114
var after []byte

internal/govendor/version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
go1.22.0
1+
go1.23.0

0 commit comments

Comments
 (0)