|
|
|
|
|
by treve
749 days ago
|
|
The benefit is that you're not creating a new directory of names, they reuse an existing well established one. Creating a central authority for names is a lot of work. Im not that experienced with Go, but I believe it's possible to create a vanity package name on a domain you control. If you want to change hosts, you can just point your domain to something else. I may be wrong there though! |
|
The go-import tag is documented here: https://go.dev/ref/mod#vcs-find
It's a bit more fiddly if your module is part of a monorepo and doesn't live at the root. In that case your go-import tag needs to point to a GOPROXY server. I have a proxy server here: https://github.com/more-please/more-stuff/tree/main/gosub