Package whroute provides utilities to implement route listing, whereby http.Handlers that opt in can list what routes they understand.
const ( // AllMethods should be returned from a whroute.Lister when all methods are // successfully handled. AllMethods = "ALL" // AllPaths should be returned from a whroute.Lister when all paths are // successfully handled. AllPaths = "[/<*>]" )
This section is empty.
func HandlerFunc ¶
HandlerFunc advertises the routes from routes, but serves content using fn.
func PrintRoutes ¶
PrintRoutes will write all routes of h to out, using the Routes method.