title: How to set GOPRIVATE environment variable
body: <p>I started working on a <code>Go</code> project and it uses some private modules from Github private repos and whenever I try to run <code>go run main.go</code> it gives me a below <code>410 Gone</code> error:</p>
  
  <blockquote>
    <p>verifying github.com/repoURL/go-proto@v2.86.0+incompatible/go.mod: github.com/repoURL/go-proto@v2.86.0+incompatible/go.mod: reading <a href="https://sum.golang.org/lookup/github.com/!repoURL/go-proto@v2.86.0+incompatible" rel="noreferrer">https://sum.golang.org/lookup/github.com/!repoURL/go-proto@v2.86.0+incompatible</a>: 410 Gone</p>
  </blockquote>
  
  <p>I can easily clone private repo from terminal which means my <code>ssh</code> keys are configured correctly. I read <a href="https://tip.golang.org/cmd/go/#hdr-Module_configuration_for_non_public_modules" rel="noreferrer">here</a> that I need to set <code>GOPRIVATE</code> environment variable but I am not sure how to do that.</p>
  
  <p>Can anyone answer or point to the relevant tutorial?</p>
  
  <p><strong>Go:</strong> v1.13, <strong>OS:</strong> macOS Mojave</p>