Back to all stories
HNLobstersStacker🔥3

Don't couple your Go code to GitHub(iain.rocks)

The Go programming language allows developers to namespace their code with the location where it can be fetched, making it easy to report bugs and distribute libraries. However, this approach can couple the code to a specific hosting provider, such as GitHub, making it difficult to switch to a different provider like GitLab. This can result in significant overhead and even prevent companies from changing their hosting provider, effectively locking their code to a particular platform. To avoid this issue, it's recommended to use a custom domain instead of the hosting provider's location, allowing for more flexibility and freedom to switch providers without affecting the code.