package
0.0.0-20191223111852-1bc63cf51d79
Repository: https://github.com/opencourseplatform/opencourseplatform-go.git
Documentation: pkg.go.dev

# Functions

AdminPage checks if the user is an admin.
Chain applies middlewares to a http.HandlerFunc.
ConfigFileExists is a middleware that checks if the config file exists.
CreateConfigFile creates the actual config file based on the input from the user.
Logging middleware logs the request.
NeuterAndLog is used for static files and returns a not found if the request ends in a '/' (meaning they want to look at the directory and not view a file).
NewConfigPage returns the new config html page */.
WriteAccessLog creates the access log string and writes it to file.

# Type aliases

Middleware declares middlware as alias of HandlerFunc */.