Categorygithub.com/dpeckett/archivefs
repositorypackage
0.11.1
Repository: https://github.com/dpeckett/archivefs.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# 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.