News for hackers. Stuff that matters.
Re:Fixing for Loops in Go 1.22 by sixstringtheory on Tuesday September 19, 2023 @06:54PM (#37578191)
Ah, I didn't see the part about //go:build
Re:Fixing for Loops in Go 1.22 by acheong08 on Wednesday September 20, 2023 @02:17AM (#37580953)
Without /:go:build tags, you can just define 1.21 as your Go version in go.mod to opt out of new features while getting other benefits of the new compiler