News for hackers. Stuff that matters.
Re:Gogs: a self-hosted Git Service written in Go by philsnow on Sunday August 24, 2014 @12:18AM (#8217672)
> 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 ?

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.
Re:Gogs: a self-hosted Git Service written in Go by DAddYE on Sunday August 24, 2014 @12:40AM (#8217709)
Thanks 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!