How can I fetch a zip archived file from the Web and decompress it in Go? It looks like archive/zip
package provides a set of tools to parse the zipped file. However, in order to decompress the zipped file, I have to use zip.OpenReader
, which takes the filename as string.
So how can I fetch the zipped file from the Web, and put it into the above function as string...? Or maybe do I have to first fetch the file and put it in one of the directories of my filesystem, and then read it?