tarfs

package module
v0.0.0-...-a7b8da8 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2015 License: MIT Imports: 9 Imported by: 0

README

GoDoc

tarfs

In-memory http.FileSystem from tar archives.

Why?

If you have multiple assets for your program that you don't want to embed them in your binary but still want an easier way to ship them along your binary, tarfs is your friend.

Usage

See the GoDoc

Contributing

Please consider opening an issue first, or just send a pull request. :)

Credits

See Contributors.

LICENSE

MIT.

TODO
  • Add more tests
SEE ALSO

Documentation

Overview

Package tarfs is an in memory http.FileSystem from tars archives.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(tarstream io.Reader) (http.FileSystem, error)

New returns an http.FileSystem that holds all the files in the tar, It reads the whole archive from the Reader. It is the caller's responsibility to call Close on the Reader when done.

Types

This section is empty.

Notes

Bugs

  • Does not implement the same semantics as os.File.Readdir when n>0 && n<len(f.files).

Jump to

Keyboard shortcuts

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