archivefs

module
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2024 License: MPL-2.0

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

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL