staticbin

package
v0.0.0-...-b5fa30d Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Types

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
}

Jump to

Keyboard shortcuts

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