fileserver

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2017 License: CC0-1.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinPathspec

func JoinPathspec(paths []string) string

func New

func New(pathspec string, zipOn, debug bool) (http.Handler, error)

Creates new handler that serves files from path. Serves from zip archive if zipOn is set.

func Serve

func Serve(l net.Listener, path string, zipOn, debug bool) error

Same as New, but attaches a server to listener l.

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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