I have a file struct that holds a body which is just a
*bytes.Reader I have two methods on the struct
Zip() error and
UnZip() error. When I call
Zip it should zip the file storing the zipped data in body and I should be able to call
UnZip on the same file and store the unzipped data in the body.
The minimal example I have is below in the playground. https://play.golang.org/p/WmZtqtvnyN
I'm able to zip the file just fine and looks like it's doing what it's supposed to do; however, when I try and unzip the file I get
I've been going at this for hours now. Any help is greatly appreciated.