�包之前，请参照前端框架的内容，先眼妆依赖，并打包前端资源。</p> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code><span class="token comment"># install go-bindata</span>
$ go get -u github.com/shuLhan/go-bindata/<span class="token punctuation">..</span>.

<span class="token comment"># 打包静态资源</span>
$ go-bindata -pkg web -o web/bindata.go web/dist/<span class="token punctuation">..</span>.
</code></pre> <div class="line-numbers-wrapper"><sp