pan style="color:#75715e"># 查看 $GOROOT 目录</span>
</span></span><span style="display:flex;"><span>$ echo $GOROOT
</span></span><span style="display:flex;"><span>/usr/local/go
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># 设置 $GOROOT 目录</span>
</span></span><span style="display:flex;"><span>$ export GOROOT<span style="color:#f92672">=</span>/usr/local/go
</span></span><span style="display:flex;"><span>
</span></spa