{"modulePath":"github.com/mutablelogic/go-server","version":"v1.4.15","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package static\n\n## Types\n\n```go\ntype Config struct {\n\tFS         fs.FS  `hcl:\"fs\" description:\"File system to serve\"`\n\tDirPrefix  string `hcl:\"prefix\" description:\"Directory to serve files from\"`\n\tDirListing bool   `hcl:\"dir\" description:\"Serve directory listings\"`\n\tPath       string `hcl:\"path\" description:\"host/path to serve files on\"`\n}\n```\n\n```go\nfunc (Config) Description() string\n```\nDescription returns the description of the service\n\n```go\nfunc (Config) Name() string\n```\nName returns the name of the service\n\n```go\nfunc (c Config) New() (server.Task, error)\n```\nCreate a new static handler from the configuration\n\n","path":"github.com/mutablelogic/go-server/pkg/handler/static","name":"static","synopsis":"","isRedistributable":true}
