diff options
| author | Adnan Maolood <[email protected]> | 2021-03-15 15:44:35 -0400 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-03-15 15:44:35 -0400 |
| commit | 1fdef9b608a4578b75c3cebbbfdba4ca20835354 (patch) | |
| tree | d55f2dcf4463fad74462b5c1bda65bac1b7f45e2 /doc.go | |
| parent | status: Reintroduce StatusSensitiveInput (diff) | |
| download | go-gemini-1fdef9b608a4578b75c3cebbbfdba4ca20835354.tar.xz go-gemini-1fdef9b608a4578b75c3cebbbfdba4ca20835354.zip | |
Rename ServeMux to Mux
Diffstat (limited to 'doc.go')
| -rw-r--r-- | doc.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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") }) |