Repository navigation
Conversation
|
This PR (HEAD: da3d2c5) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/vuln/+/835185. Important tips:
|
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/835185. |
|
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be Please don’t reply on this GitHub thread. Visit golang.org/cl/835185. |
Apply the modernizations suggested by gopls/modernize now that the
module requires Go 1.26:
- Replace interface{} with any.
- Use built-in min/max instead of hand-written comparisons.
- Use slices.Contains and slices.Backward instead of manual loops.
- Use strings.Cut/CutPrefix and the SplitSeq/FieldsSeq iterators.
- Use range-over-int in test loops.
- Use sync.WaitGroup.Go.
- Drop redundant per-iteration loop variable copies.
- Remove omitempty from struct-typed JSON fields, where it has no
effect.
No behavior change.
|
Message from Ajay kemparaj: Patch Set 1: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/835185. |
|
This PR (HEAD: 3ece405) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/vuln/+/835185. Important tips:
|
Apply the modernizations suggested by gopls/modernize now that the
module requires Go 1.26:
effect.
No behavior change.