From da7322c1eb4a8eb1e6c7ba84530e5a65732c5b48 Mon Sep 17 00:00:00 2001 From: Camilo Aguilar Date: Tue, 4 Oct 2022 11:48:22 -0400 Subject: [PATCH] Update README to account for new API --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 82f9ac9..62a3bcb 100644 --- a/README.md +++ b/README.md @@ -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) ``` -