Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHandler ¶
CreateHandler builds a new handler with the provided package configuration, and templates. The templates object must contain the following: index.html, package.html, and 404.html. The returned handler provides the following endpoints:
GET / Index page listing all packages. GET /<name> Package page for the given package. GET /<dir> Page listing packages under the given directory, assuming that there's no package with the given name. GET /<name>/<subpkg> Package page for the given subpackage.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.