I have a private repository, let's say https://example.com:12345/my_package.git
. I want to go get
such package using HTTP.
What are the specific steps I must follow to accomplish this?
The first issue I'm facing is that I don't know where I must set the port. In the import
section, it complains about invalid import path
. In Gopkg.toml
, it tries to go to https://example.com
instead of https://example.com:12345
. Just go get -d -v https://example:12345/my_package.git
complains about the :
char...
So, how can I do this? Using ether username/pass or token (gitlab), just not SSH.