archive

package
v0.0.0-...-e6da677 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2013 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package archive provides an unified interface to various file storage devices.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFont

func LoadFont(
	d Device, path string, glyphHeight float64,
	startChar, numChars int) (f *font.Font, err error)

func LoadPng

func LoadPng(d Device, path string) (img image.Image, err error)

Types

type Device

type Device interface {
	Open(path string) (rc io.ReadCloser, err error)
}

func FileZipDevice

func FileZipDevice(path string) (zd Device, err error)

FileZipDevice returns an archive device that represents the contents of a zip file.

func FsDevice

func FsDevice(rootPath string) (fd Device, err error)

FsDevice returns an archive device that represents a native filesystem path.

func New

func New(devs ...Device) Device

Jump to

Keyboard shortcuts

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