3 ms·
> With Go you need a directory structure to store your templates, CSS, etc. Is there anything stopping one from appending a zip archive to the go binary, and h
by philsnow 12y ago
> With Go you need a directory structure to store your templates, CSS, etc.
Is there anything stopping one from appending a zip archive to the go binary, and having the binary open the executable as a zip file to get at the static assets ?
- mjibson 12y agogo.rice (https://github.com/GeertJohan/go.rice https://github.com/GeertJohan/go.rice) does things like this.
- DAddYE 12y agoThanks guys I was looking for something like that and I was aware of go-data, this with the next go generate should be very neat!
- kyrra 12y agoThere are some 3rd party build tools to help with that. Below are a couple I found. https://github.com/GeertJohan/go.rice https://github.com/GeertJohan/go.rice https://github.com/jteeuwen/go-bindata https://github.com/jteeuwen/go-bindata EDIT: to add, the Go team is looking to add a generate command in go1.4 to help with this. See: https://groups.google.com/forum/m/#!topic/golang-dev/ZTD1qtpruA8 https://groups.google.com/forum/m/#!topic/golang-dev/ZTD1qtp...