aboutsummaryrefslogtreecommitdiff
path: root/doc.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-03-15 15:44:35 -0400
committerAdnan Maolood <[email protected]>2021-03-15 15:44:35 -0400
commit1fdef9b608a4578b75c3cebbbfdba4ca20835354 (patch)
treed55f2dcf4463fad74462b5c1bda65bac1b7f45e2 /doc.go
parentstatus: Reintroduce StatusSensitiveInput (diff)
downloadgo-gemini-1fdef9b608a4578b75c3cebbbfdba4ca20835354.tar.xz
go-gemini-1fdef9b608a4578b75c3cebbbfdba4ca20835354.zip
Rename ServeMux to Mux
Diffstat (limited to 'doc.go')
-rw-r--r--doc.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc.go b/doc.go
index 227180a..a1aec2e 100644
--- a/doc.go
+++ b/doc.go
@@ -29,10 +29,10 @@ Servers should be configured with certificates:
}
server.GetCertificate = certificates.Get
-ServeMux is a Gemini request multiplexer.
-ServeMux can handle requests for multiple hosts and schemes.
+Mux is a Gemini request multiplexer.
+Mux can handle requests for multiple hosts and schemes.
- mux := &gemini.ServeMux{}
+ mux := &gemini.Mux{}
mux.HandleFunc("example.com", func(ctx context.Context, w gemini.ResponseWriter, r *gemini.Request) {
fmt.Fprint(w, "Welcome to example.com")
})