We are using private Bitbucket repositories to manage our Go libraries. By using the insteadOf config for git as described e.g. in this Stackoverflow a
insteadOf
git
Since go@1.13 to have a behavior similar to previous versions, you need to set GOPRIVATE environmental variable for private repositories