This commit is contained in:
Miek Gieben 2012-08-24 15:20:20 +02:00
parent ceb8516f3f
commit b6342d94f9
1 changed files with 2 additions and 2 deletions

View File

@ -149,14 +149,14 @@ func (mux *ServeMux) ServeDNS(w ResponseWriter, request *Msg) {
// Handle registers the handler with the given pattern
// in the DefaultServeMux. The documentation for
// ServeMux explains how patters are matched.
// ServeMux explains how patterns are matched.
func Handle(pattern string, handler Handler) { DefaultServeMux.Handle(pattern, handler) }
// HandleRemove deregisters the handle with the given pattern
// in the DefaultServeMux.
func HandleRemove(pattern string) { DefaultServeMux.HandleRemove(pattern) }
// HandleFunc registers the handler function with te given pattern
// HandleFunc registers the handler function with the given pattern
// in the DefaultServeMux.
func HandleFunc(pattern string, handler func(ResponseWriter, *Msg)) {
DefaultServeMux.HandleFunc(pattern, handler)