From 2731b1c3bc7951bd9fed909203ec0a8e9b7124d2 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Sat, 8 Jan 2022 22:27:03 -0700 Subject: [PATCH] Update readme --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 28e1e110..b7487346 100644 --- a/README.md +++ b/README.md @@ -170,6 +170,7 @@ Use archiver to simply create a file system: // - an archive ("example.zip") // - a compressed archive ("example.tar.gz") // - a regular file ("example.txt") +// - a compressed regular file ("example.txt.gz") fsys, err := archiver.FileSystem(filename) if err != nil { return err @@ -188,7 +189,7 @@ if err != nil { defer f.Close() ``` -If you opened a regular file, you can read from it. +If you opened a regular file, you can read from it. If it's a compressed file, reads are automatically decompressed. If you opened a directory, you can list its contents: