wrappedfs

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

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

Go to latest
Published: Apr 8, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

README

WrappedFS

Build Status

WrappedFS is a little wrapper around http.Filesystem to just access a certain path of the original. Mainly to use with Statik.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(fs http.FileSystem, dir string) http.FileSystem

New creates a new WrappedFS with the given dir

Types

type WrappedFS

type WrappedFS struct {
	// contains filtered or unexported fields
}

WrappedFS wrapped an http.FileSystem, but prepends the initalized dir to the path

func (*WrappedFS) Open

func (wfs *WrappedFS) Open(name string) (http.File, error)

Open opens a file from the unterlying http.Filesystem at wfs.dir/name

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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