magpie

package module
v0.0.0-...-20cc060 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: CC0-1.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decompress

func Decompress(b []byte) (d []byte, err error)

func NewFileSystem

func NewFileSystem(nest Nest, prefix string) http.FileSystem

Types

type Asset

type Asset struct {
	Content []byte
	// contains filtered or unexported fields
}

func NewAsset

func NewAsset(name string, content []byte, size int64, mode os.FileMode, modTime time.Time, hash string) Asset

func (Asset) IsDir

func (a Asset) IsDir() bool

func (Asset) ModTime

func (a Asset) ModTime() time.Time

func (Asset) Mode

func (a Asset) Mode() os.FileMode

func (Asset) Name

func (a Asset) Name() string

func (Asset) Size

func (a Asset) Size() int64

func (Asset) Sys

func (a Asset) Sys() interface{}

func (Asset) URL

func (a Asset) URL() string

type Nest

type Nest func(name string) (Asset, error)

func NewNest

func NewNest(assets map[string]Asset) Nest

type UnknownAssetError

type UnknownAssetError struct {
	Name string
}

func (*UnknownAssetError) Error

func (uae *UnknownAssetError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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