Go already supports an indirection layer, commonly known as vanity URLs. It works by making a request to a domain owned by the project and parsing a meta tag in the response that points to the actual repository location. Of course, the problem is that few projects bother to set this up.
bheadmaster|1 year ago
[0] https://go.dev/ref/mod#go-mod-file-replace