httpfs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2017 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStaticFileSystem

func NewStaticFileSystem(assetsPath string) (http.FileSystem, error)

NewStaticFileSystem returns the initialized implementation of http.FileSystem

If 'assetsPath' is not empty, the assets will be loaded from the path instead of zip attachment.

Types

type ResourceMap

type ResourceMap map[string]*zip.File

func (ResourceMap) Open

func (rm ResourceMap) Open(name string) (http.File, error)

Jump to

Keyboard shortcuts

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