# Functions
AtShutdown adds a function to the list of functions that will be ran at shutdown.
InsertScriptTag takes HTML and JS and tries to insert the JS in a good spot, then returns modified HTML.
New creates a new server configuration based using the default values.
NewReverseProxyConfig creates a new and empty ReverseProxyConfig struct.
ReadIgnoreFile reads the ignore patterns from the ignore.txt file.
RecorderToString discards the HTTP headers and return the recorder body as a string.
ShouldIgnore checks if a given filename should be ignored based on the provided patterns.
ValidGCSS checks if the given data is valid GCSS.
WriteRecorder writes to a ResponseWriter from a ResponseRecorder.
# Constants
Version number.
# Variables
ErrVersion is returned when the initialization quits because all that is done is showing version information.
ErrVersion is returned when the initialization quits because all that is done is showing version information.
# Structs
Config is the main structure for the Algernon server.
DirConfig keeps a directory listing configuration.
FutureStatus is useful when redirecting in combination with writing to a buffer before writing to a client.
ReverseProxy holds which path prefix (like "/api") should be sent where (like "http://localhost:8080").
ReverseProxyConfig holds several "path prefix --> URL" ReverseProxy structs, together with structures that speeds up the prefix matching.