module
Version:
v0.7.0
Opens a new window with list of versions in this module.
Published: Aug 13, 2024
License: MPL-2.0
Opens a new window with license information.
README
¶
archivefs
Implementations of Go's io/fs.FS interface for
various archive types.
Supported Archive Types
Usage
package main
import (
"log"
"os"
"github.com/dpeckett/archivefs/tarfs"
)
func main() {
f, err := os.Open("example.tar")
if err != nil {
log.Fatal(err)
}
defer f.Close()
fsys, err := tarfs.Open(f)
if err != nil {
log.Fatal(err)
}
// Do something with the filesystem.
}
License
This project is licensed under the Mozilla Public License 2.0 - see the
LICENSE file for details.
Directories
¶
Click to show internal directories.
Click to hide internal directories.