package
1.0.0-beta.2
Repository: https://github.com/s12chung/gostatic.git
Documentation: pkg.go.dev

# Functions

NewGenerateRouter returns a new instance of GenerateRouter.
NewResponse returns a new instance of Response.
NewWebRouter returns a new instance of WebRouter.
RunFileServer hosts the files of targetDir into given port with the log.

# Constants

RootURL is the URL of the Root of the router.

# Structs

GenerateRequester makes requests on the GenerateRouter.
GenerateRouter generates static files, note that ContentType is respected by the router's Response struct, by default via calling mime.TypeByExtension (Go std lib) on the route pattern or setting it via Context.
Response given by all routers.
WebRequester makes requests on the WebRouter.
WebRouter is the router to host a web application server.

# Interfaces

Context is an interface of the context provided for every route, it's an interface to make testing easier.
Requester is an abstraction for making router requests.
Router is the interface for all routers.

# Type aliases

AroundHandler is the handler for Router callbacks.
ContextHandler is the handler for Router routes.