5 ms·
No, it does not. Packages can compile using 1.22 and gain other benefits without opting into this change.
by ericpauley 3y ago
No, it does not. Packages can compile using 1.22 and gain other benefits without opting into this change.
- sixstringtheory 3y agoAh, I didn't see the part about //go:build
- _lvbh 3y agoWithout /: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