Documentation ¶ Overview ¶ Based on https://github.com/olebedev/staticbin Index ¶ func Static(asset func(string) ([]byte, error), options ...Options) echo.MiddlewareFunc type Options 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 } Source Files ¶ View all Source files static.go Click to show internal directories. Click to hide internal directories.