go-bindata

Generates Go code from binary files for embedding data

brewmacoslinux
Try with needOr install directly
Source

About

Small utility that generates Go code from any file

Commands

go-bindata

Examples

Convert a single file into Go code$ go-bindata -o bindata.go myfile.txt
Embed multiple files from a directory$ go-bindata -o assets.go -pkg assets ./assets/...
Generate with custom package name and prefix$ go-bindata -o data.go -pkg data -prefix static/ static/