I have local private repository (gitlab) with hostname https://git.local.com:1234/
Also I have several packages in my golang project
Project structure looks like:
// my_project/main.go
package main
import (
"git.local.com:1234/my_project/notMainPackage"
)
func main() {
//....
}
// my_project/notMainPackage/notMainPackage.go
package notMainPackage
func SomeFunc() {
}
The problem is that I should use colons in my import path to be able run go get
and go build
comands, but, when import path contains colon, I get error
invalid import path: "git.local.com:1234/my_project/notMainPackage"
I can't change host of gitlab sever.
How can i solve this problem?