Golang does have this:
https://golang.org/misc/linkcheck/linkcheck.go
It’s used on the docs, apparently. I guess something like this could be incorporated by someone who can code in golang and do a PR for adding it.
But I think @moorereason’s suggestion is easy to incorporate into a deploy or pre-deploy script.