zippath

package module
v0.0.0-...-6b2bb95 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterOutDirs

func FilterOutDirs(paths []string) []string

FilterOutDirs filters out directories in a list of paths. Note that the paths slice will be modified by the function.

func Glob

func Glob(r *zip.Reader, pattern string) []string

Glob returns the names of all files matching the given pattern in the zip archive. The only special character in a pattern is '*', it indicates a match of zero or more of any character. It may be escaped with a '\' to match the '*' character. Be careful to escape the '\' if you are not using a raw string literal.

func Open

func Open(r *zip.Reader, path string) (io.ReadCloser, error)

Open opens the file in the reader if it exists. The filename must be an exact match.

Types

This section is empty.

Jump to

Keyboard shortcuts

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