GitLab is a free, open-source way to host private .git repositories but it does not seem to work with Go. When you create a project it generates a URL of the fo
.git
You can setup your git credentials and Go will use them:
git config credential.helper store
echo https://your-github-username:your-generated-password@github.com >> ~/.git-credentials