Private repository を go get する
GitHub
で personal access token を取得し、
.gitconfig
でそのtokenを使用したURLに変更する必要がある
code:sh
[url "
https://xxxxx:x-oauth-basic@github.xxx.com/"]
insteadOf =
https://github.xxx.com/
enterpriseのURLの場合、
GOPRIVATE
の設定も必要
code:sh
go env GOPRIVATE=github.xxx.com