static

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2017 License: MIT Imports: 5 Imported by: 1

README

echo static middleware

Inspired by Code-Hex/echo-static

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Static

func Static(urlPrefix string, afs *assetfs.AssetFS) echo.MiddlewareFunc

func StaticWithConfig

func StaticWithConfig(config StaticConfig) echo.MiddlewareFunc

Types

type StaticConfig

type StaticConfig struct {
	UrlPrefix string
	AssetFS   *assetfs.AssetFS
	Skipper   middleware.Skipper
	Browse    bool
}

Jump to

Keyboard shortcuts

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