{"modulePath":"github.com/RedAFD/code-core","version":"v1.8.3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package public\n\n## Functions\n\n```go\nfunc Custom(opts *Options) macaron.Handler\n```\nCustom implements the macaron static handler for serving custom assets.\n\n```go\nfunc GenerateETag(fileSize, fileName, modTime string) string\n```\nGenerateETag generates an ETag based on size, filename and file modification time\n\n```go\nfunc Static(opts *Options) macaron.Handler\n```\nStatic implements the macaron static handler for serving assets.\n\n```go\nfunc StaticHandler(dir string, opts *Options) macaron.Handler\n```\nStaticHandler sets up a new middleware for serving static files in the\n\n## Types\n\n```go\ntype Options struct {\n\tDirectory   string\n\tIndexFile   string\n\tSkipLogging bool\n\t// if set to true, will enable caching. Expires header will also be set to\n\t// expire after the defined time.\n\tExpiresAfter time.Duration\n\tFileSystem   http.FileSystem\n\tPrefix       string\n}\n```\nOptions represents the available options to configure the macaron handler.\n\n","path":"github.com/RedAFD/code-core/modules/public","name":"public","synopsis":"","isRedistributable":true}
