Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var KnownPublicEntries = []string{
"css",
"fomantic",
"img",
"js",
"serviceworker.js",
"vendor",
}
KnownPublicEntries list all direct children in the `public` directory
Functions ¶
func Custom ¶ added in v1.1.0
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.
Click to show internal directories.
Click to hide internal directories.