The following would probably be more portable:
///usr/bin/env go run "$0" "$@"; exit
Note, the exit code isn't passed through due to:
https://github.com/golang/go/issues/13440To quote the blog in question:
> How true this is, is a topic I dare not enter.
Does the third leading slash do something?