aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/http/server.go
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2011-02-22 11:16:25 +1100
committerAndrew Gerrand <adg@golang.org>2011-02-22 11:16:25 +1100
commit1e73fed888e313284fda240aa9b977dbe10aac5a (patch)
tree605c7805c2889f83de2ed8178b3564ef47a784f6 /src/pkg/http/server.go
parent1f39ed8a2debe6620d345f0a138af23c4e5c5a47 (diff)
downloadgo-1e73fed888e313284fda240aa9b977dbe10aac5a.tar.xz
http: add pointer from Handle[Func] to ServeMux docs
R=r CC=golang-dev https://golang.org/cl/4169065
Diffstat (limited to 'src/pkg/http/server.go')
-rw-r--r--src/pkg/http/server.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pkg/http/server.go b/src/pkg/http/server.go
index 0be270ad30..d16cadb3b5 100644
--- a/src/pkg/http/server.go
+++ b/src/pkg/http/server.go
@@ -657,10 +657,12 @@ func (mux *ServeMux) HandleFunc(pattern string, handler func(ResponseWriter, *Re
// Handle registers the handler for the given pattern
// in the DefaultServeMux.
+// The documentation for ServeMux explains how patterns are matched.
func Handle(pattern string, handler Handler) { DefaultServeMux.Handle(pattern, handler) }
// HandleFunc registers the handler function for the given pattern
// in the DefaultServeMux.
+// The documentation for ServeMux explains how patterns are matched.
func HandleFunc(pattern string, handler func(ResponseWriter, *Request)) {
DefaultServeMux.HandleFunc(pattern, handler)
}