Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SortFilesByName ¶
Types ¶
type Archive ¶
type Archive struct {
Files []*File
}
Archive is a collection of file names and contents
func NewArchiveFromFiles ¶
NewArchiveFromFiles converts a slice of os.File structs into an Archive.
func NewArchiveFromTar ¶
func NewArchiveFromTar(r io.ReadCloser) (*Archive, error)
NewArchiveFromTar converts a tar archive reader into a slice of File struct preserving the name and body of the file.
func NewArchiveFromZip ¶
NewArchiveFromZip converts a zip archive reader into a slice of File struct preserving the name and body of the file.
Click to show internal directories.
Click to hide internal directories.