Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Go also provides a replace directive in the go.mod file [0].

[0] https://go.dev/ref/mod#go-mod-file-replace




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: