alexrios
open main menu
Part of series: tutorial

Using private Go libs

/ 1 min read

Step 1 - Configure GIT (~/.gitconfig)

[url "ssh://git@github.com/"]
insteadOf = https://github.com/

Step 2 - Add the private repository location in GOPRIVATE env var

go env -w GOPRIVATE="github.com/<org>/<project>"