Documentation
¶
Overview ¶
Package whroute provides utilities to implement route listing, whereby http.Handlers that opt in can list what routes they understand.
Index ¶
Constants ¶
View Source
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 = "[/<*>]" )
Variables ¶
This section is empty.
Functions ¶
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.