(file *os.File)
| 20 | ) |
| 21 | |
| 22 | func readFile(file *os.File) []byte { |
| 23 | bytes, err := ioutil.ReadAll(file) |
| 24 | Expect(err).NotTo(HaveOccurred()) |
| 25 | return bytes |
| 26 | } |
| 27 | |
| 28 | // Thanks to Svett Ralchev |
| 29 | // http://blog.ralch.com/tutorial/golang-working-with-zip/ |