static

package
v0.0.0-...-8405ca7 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: MIT Imports: 5 Imported by: 1

Documentation

Overview

Package static provides http handlers for serving static files from the embedded filesystem or from a local directory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dir

func Dir(stripPrefix string, path string) http.Handler

Dir returns a handler that serves static files from the given local directory. Unlike http.FileServer(http.Dir(path)) it will not serve directory listings.

func Embedded

func Embedded(stripPrefix string) http.Handler

Embedded is an http handler that serves static files embedded into source of this package.

func EmbeddedFile

func EmbeddedFile(file string) http.Handler

EmbeddedFile is an http handler that serves a static file embedded into source of this package.

Types

This section is empty.

Jump to

Keyboard shortcuts

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