Update README to account for new API

This commit is contained in:
Camilo Aguilar
2022-10-04 11:48:22 -04:00
parent b3f4c4a933
commit da7322c1eb

View File

@@ -17,13 +17,12 @@ Unpack a file:
```go
file, _ := os.Open(test.filepath)
destPath, err := unpackit.Unpack(file, tempDir)
err := unpackit.Unpack(file, tempDir)
```
Unpack a stream (such as a http.Response):
```go
res, err := http.Get(url)
destPath, err := unpackit.Unpack(res.Body, tempDir)
err := unpackit.Unpack(res.Body, tempDir)
```