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
From dep version 5.2, dep supports private repositories for Gitlab private repositories.
On .netrc file, you can provide your Gitlab username and access token for accessing private repositories.
.netrc file in your $HOME directory$ touch $HOME/.netrc
.netrc with your Gitlab credentialsmachine gitlab..com
login
password
... (more private repositories if needed)
dep command to resolve private packages. In this case,$ dep ensure -v