Skip to content

Apply go fix changes - #115

Open
r0manarmy wants to merge 1 commit into
didip:masterfrom
r0manarmy:go-fix-2
Open

Apply go fix changes#115
r0manarmy wants to merge 1 commit into
didip:masterfrom
r0manarmy:go-fix-2

Conversation

@r0manarmy

Copy link
Copy Markdown

Go 1.26 includes an updated go fix command that can identify opportunities to improve code by taking advantage of more modern features of the language and library.

Ran go fix on the project and removed some stuff that's made it into the standard library. WaitGroup change was added in 1.25 so go version needs to be at least that. Without that, it can go as low as 1.21.

Go's rate limiter now exposes Tokens/TokensAt methods. We can replace the embedded rate limiter with the one in x/time.

Go 1.26 includes an updated `go fix` command that can identify
opportunities to improve code by taking advantage of more modern
features of the language and library.

Ran `go fix` on the project and removed some stuff that's made it into
the standard library. WaitGroup change was added in 1.25 so go version
needs to be at least that. Without that, it can go as low as 1.21.

Go's rate limiter now exposes Tokens/TokensAt methods. Replacing the
embedded rate limiter with the one in x/time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant