Documentation
¶
Overview ¶
Package ohm contains several auxiliary functions for writing web servers in Go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Mount ¶
Mount registers the handler for the given pattern on the parent router. If the given pattern conflicts, with one that is already registered, or is missing the suffix /, Mount panics.
Mount is supposed to be used with a net/http.ServeMux. Prefer net/http.ServeMux.Handle for other net/http.Handler.
func Route ¶
Route allocates a new net/http.ServeMux and mounts it for the given pattern on the parent router. If the given pattern conflicts, with one that is already registered, or is missing the suffix /, Route panics.
Effectively, this is a short-hand call to Mount.
Types ¶
This section is empty.