Web Analytics

Set Up a Custom Import Path for Your Go Module in 30 Seconds

What Is a Vanity URL? A Vanity URL gives your Go module an import path you own, instead of one tied to GitHub or GitLab. // ❌ Long and platform-dependent import "github.com/your-org/your-project" // ✅ Short, branded, platform-independent import "go.yourcompany.com/your-project" The actual code can live on any Git server — GitHub, GitLab, Gitea, self-hosted. When you switch repositories, the import path stays the same. This tutorial gets you there in 30 seconds. ...

July 12, 2026 · Tony Bai