embedding binary data as string literals

Developer from somewhere

The problem: had a gzipped file that I wanted to include as a string literal in code.

The solution:

go-bindata -nocompress *.gz
  • found the []byte(“”) representation of the file
  • included it in the code
  • done!