I love how the conjunction of #golang's modules system and build constraints lets you have your cake and eat it too! 🍰
You can let users of your library take advantage of the bleeding edge if they so wish without cutting off one of the currently supported Go toolchains.
When something tantalising gets merged at tip, you can put code that relies on it in a file guarded by a //go:build go1.27 build constraint and its pre-1.27 counterpart in a file guarded by a //go:build !go1.27 build constraint. No need to update your go.mod's go directive.


