Back to godoc.org

Package staticbin

v0.0.0-...-b5fa30d
Latest Go to latest

The latest major version is .

Published: May 29, 2019 | License: MIT | Module: github.com/hb-go/echo-web

Overview

Based on https://github.com/olebedev/staticbin

Index

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