store

package
v0.0.0-...-544e413 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2016 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StoreFS

type StoreFS struct{ vfs.FileSystem }

func Open

func Open() (StoreFS, error)

Open will try to find the path of the executable and open a zip reader. This relies on argv[0] being the relative path to the executable and in most cases this is true.

func OpenFile

func OpenFile(filename string) (StoreFS, error)

OpenFile will try to read the specified file regardless if it's a executable or zip file.

func (StoreFS) ReadFile

func (fs StoreFS) ReadFile(filename string) (b []byte, err error)

ReadFile will attempt to look for a file within the store matching the specified filepath relative to the store. If found the file contents are copied to memory.

Jump to

Keyboard shortcuts

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