Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Custom ¶ added in v1.1.0
func Custom(opts *Options) macaron.Handler
Custom implements the macaron static handler for serving custom assets.
func GenerateETag ¶ added in v1.5.0
GenerateETag generates an ETag based on size, filename and file modification time
Types ¶
type Options ¶
type Options struct {
Directory string
IndexFile string
SkipLogging bool
// if set to true, will enable caching. Expires header will also be set to
// expire after the defined time.
ExpiresAfter time.Duration
FileSystem http.FileSystem
Prefix string
}
Options represents the available options to configure the macaron handler.
Source Files
¶
- dynamic.go
- public.go
Click to show internal directories.
Click to hide internal directories.