I have a private (corporate self-service) git repository that listens on a different but default http port. (E.g. 6655)
The full url repository for my golang library would be:
http:
I tried to import it like this:
package main import ( "encoding/json" "flag" "fmt" "internal-git.corporate-domain.com:6655/~myuser/golang-lib.git" "log" "net/http" "os" "os/signal" "time" )
The documentation here and here is not explicit about this.
When I try to compile the code above, I get:
C:\Users\myuser\gopath\src\myuser\golang-project>go get can't load package: package myuser/golang-project: main.go:7:2: invalid import path: "internal-git.corporate-domain.com:6655/~myuser/golang-lib.git"
source share