ndex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span><span style="color:#75715e"># 通过 go env 命令设置代理环境变量</span>
</span></span><span style="display:flex;"><span>$ go env -w GOPROXY<span style="color:#f92672">=</span>https://goproxy.cn,direct
</span></span></code></pre></div><h1 id="modules">
  Modules
  <a class="anchor" href="#modules">#</a>
</h1>
<p>Go 从 1.1