Since esbuild uses some newer Go API's it would be nice to accurately specify the minimum Go version for dependents. I ran into this while trying to upgrade esbuild to 0.12.26 while on Go 1.16, where Go would no longer compile with esbuild due to its math.MaxInt usage. I wish I could offer something more than this trivial change, but perhaps it will be helpful to others.
I'm far from a Go expert so if there are things to be careful with when updating this please let me know (i.e. I read through https://golang.org/doc/modules/gomod-ref and, weirdly, it sounds like Go should have caught this...).