{"modulePath":"github.com/sqlatlas/gui","version":"v6.1.6+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package httpstatic\n\n## Variables\n\n```go\nvar Root string\n```\n\n## Functions\n\n```go\nfunc Static(directory string, staticOpt ...StaticOptions) macaron.Handler\n```\nStatic returns a middleware handler that serves static files in the given directory.\n\n```go\nfunc Statics(opt StaticOptions, dirs ...string) macaron.Handler\n```\nStatics registers multiple static middleware handlers all at once.\n\n## Types\n\n```go\ntype StaticOptions struct {\n\t// Prefix is the optional prefix used to serve the static directory content\n\tPrefix string\n\t// SkipLogging will disable [Static] log messages when a static file is served.\n\tSkipLogging bool\n\t// IndexFile defines which file to serve as index if it exists.\n\tIndexFile string\n\t// Expires defines which user-defined function to use for producing a HTTP Expires Header\n\t// https://developers.google.com/speed/docs/insights/LeverageBrowserCaching\n\tAddHeaders func(ctx *macaron.Context)\n\t// FileSystem is the interface for supporting any implementation of file system.\n\tFileSystem http.FileSystem\n}\n```\nStaticOptions is a struct for specifying configuration options for the macaron.Static middleware.\n\n","path":"github.com/sqlatlas/gui/pkg/api/static","name":"httpstatic","synopsis":"","isRedistributable":true}
