static

package
v0.0.0-...-f3a3c3f Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2016 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dir

func Dir(path string) func(*static)

Dir set real directory to serve static files from

func New

func New(setups ...func(*static)) xrest.Plugger

New create a new static file server Default:

dir: ./static
prefix: /public

func Prefix

func Prefix(prefix string) func(*static)

Prefix set prefix to url to serve static files

Types

This section is empty.

Jump to

Keyboard shortcuts

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