Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go 1.22 features #1385

Merged
merged 1 commit into from
Feb 27, 2024
Merged

go 1.22 features #1385

merged 1 commit into from
Feb 27, 2024

Conversation

serprex
Copy link
Contributor

@serprex serprex commented Feb 26, 2024

  1. reflect.TypeOf
  2. no need to copy loop variable for closure
  3. range N replaces basic count-to-N loop

Need to update golangci, see #1386

@serprex serprex marked this pull request as draft February 27, 2024 01:42
@serprex serprex changed the title go.mod: go 1.22 go 1.22 features Feb 27, 2024
1. use reflect.TypeOf
2. no need to copy loop variable for closure
3. `range N` replaces basic count-to-N loop
@serprex serprex marked this pull request as ready for review February 27, 2024 02:31
@serprex serprex merged commit 7df7735 into main Feb 27, 2024
7 checks passed
@serprex serprex deleted the go22 branch February 27, 2024 02:41
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.

2 participants