package
3.1.0-RC1+incompatible
Repository: https://github.com/tarampampam/mikrotik-hosts-parser.git
Documentation: pkg.go.dev

# Functions

JSONErrorHandler respond with simple json-formatted response, if json format was requested (defined in `Accept` header).
NewFileServer creates new file server with default settings.
StaticHTMLPageErrorHandler allows to use user-defined local file with HTML for error page generating.

# Structs

FileServer is a main file server structure (implements `http.Handler` interface).
Settings describes file server options.

# Type aliases

ErrorHandlerFunc is used as handler for errors processing.
ErrorPageTemplate is error page template in string representation.