> People can work around this for HTTP middleware because they can make files build only on specific minimum versions of Go. Your package doesn't have this magical power; it's something available only for new APIs in the Go standard library.
It is indeed possible to add build constraints to .go files to have them included for compilation only on specified minimum versions of Go, see [1]