Re:Gogs: a self-hosted Git Service written in Go
by kyrra on Sunday August 24, 2014 @12:29AM
(#8217693)
There 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/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/ZTD1qtp...
Re:Gogs: a self-hosted Git Service written in Go
by mjibson on Sunday August 24, 2014 @12:29AM
(#8217692)
go.rice (https://github.com/GeertJohan/go.rice) does things like this.
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 ?