The problem: had a gzipped file that I wanted to include as a string literal in code.
The solution:
- used the following tool go-bindata:
go-bindata -nocompress *.gz
- found the []byte(“”) representation of the file
- included it in the code
- done!
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