Implementations of Go's io/fs.FS interface for various archive types.
package main
import (
"log"
"os"
"github.com/unikraft/go-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.
}This project is licensed under the Mozilla Public License 2.0 - see the LICENSE file for details.