httpfs

package module
v0.0.0-...-ce04ebd Latest Latest
Warning

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

Go to latest
Published: May 14, 2018 License: BSD-3-Clause Imports: 8 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

httpfs

Package httpfs implements http.FileSystem on top of a map[string]string.

Installation

$ go get [-u] github.com/cznic/httpfs

Documentation: godoc.org/github.com/cznic/httpfs

Documentation

Overview

Package httpfs implements http.FileSystem on top of a map[string]string.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystem

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

FileSystem is an implementation of http.FileSystem.

func NewFileSystem

func NewFileSystem(files map[string]string, modTime time.Time) *FileSystem

NewFileSystem returns a new FileSystem containing http.Files from the files argument. The map keys must be rooted unix slash-separated paths. The file content is whatever the associated map value is. All files will have their modTime set to modTime.

func (*FileSystem) Open

func (f *FileSystem) Open(name string) (fi http.File, err error)

Open implements http.FileSystem.

Jump to

Keyboard shortcuts

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