822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>$ go build -ldflags<span style="color:#f92672">=</span><span style="color:#e6db74">&#34;-s -w&#34;</span>  main.go <span style="color:#f92672">&amp;&amp;</span> upx -9 main <span style="color:#75715e"># 使用最高压缩率</span>
</span></span><span style="display:flex;"><span>$ ls -sh main
</span></span><span style="display:flex;"><span>  552K main
</span></span></code></pre></d