Hacker News new | ask | show | jobs
by Shish2k 4259 days ago
> eg bindata: translating binary files such as JPEGs into byte arrays in Go source

I'm doing that myself in a terribly hacky way using custom shell scripts and a bit of python to print out a .go file -- but seeing it in this list makes me wonder if it is a common problem that has been solved better already - does anyone know of any tools for this? (I imagine something like "bin2src -i foo.jpg -o foo.go", with support for a variety of languages)