mirror of
https://github.com/c4milo/unpackit.git
synced 2025-09-26 19:01:11 +08:00
Update README to account for new API
This commit is contained in:
@@ -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)
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user