Back to

Package staticbin

Latest Go to latest

The latest major version is .

Published: May 29, 2019 | License: MIT | Module:


Based on


func Static

func Static(asset func(string) ([]byte, error), options ...Options) echo.MiddlewareFunc

Static returns a middleware handler that serves static files in the given directory.

type Options

type Options struct {
	// SkipLogging will disable [Static] log messages when a static file is served.
	SkipLogging bool
	// IndexFile defines which file to serve as index if it exists.
	IndexFile string
	// Path prefix
	Dir string

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier