go mod donwload from github

C++
this setting will help to module to look into the private repo

go env -w GOPRIVATE=github.com/your private repo name
Source

Also in C++: