Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRoute ¶
func AddRoute(pattern string, handler http.HandlerFunc)
Function to register a new route
example: web.AddRoute("/", web.wrap(index)) example wrapper function:
func index() { web.RenderHTML(w, "index.html") }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.