vanity import path
A technique in Go that sets a module's import path to a custom domain name rather than a code-hosting platform address. An HTML page containing a go-import meta tag is served under the domain to redirect the import path to the actual repository location, decoupling the module path from its hosting and improving portability.
Timeline (last 90 days)
Go provides a vanity import path mechanism that allows setting the module path to a domain name one controls.
The costs of decoupling with a custom domain include: needing to maintain a domain long-term (domain expiration is a risk point), configuring a static page service that returns the correct meta tags, and bearing additional infrastructure complexity.
All Facts (2)
Go provides a vanity import path mechanism that allows setting the module path to a domain name one controls.
50%UnverifiedThe costs of decoupling with a custom domain include: needing to maintain a domain long-term (domain expiration is a risk point), configuring a static page service that returns the correct meta tags, and bearing additional infrastructure complexity.
50%