Set up Go to use your internal registry
Set up Go to use a module proxy by setting environment variables in your workspaces. .Prerequisites
About this task
- You have an active
ocsession with your project. See This page is not included, but the link has been rewritten to point to the nearest parent document.Getting started with the CLI. - You know the URL of your Go module proxy.
Procedure
Results
- Open a terminal in your workspace.
- Verify the Go configuration:
$ go env GOPROXY - Download a Go module to verify the configuration:
$ go get github.com/gin-gonic/gin