Rename ServeMux to Mux

This commit is contained in:
Adnan Maolood
2021-03-15 15:44:35 -04:00
parent 2144e2c2f2
commit 1fdef9b608
6 changed files with 21 additions and 21 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ type nopHandler struct{}
func (*nopHandler) ServeGemini(context.Context, ResponseWriter, *Request) {}
func TestServeMuxMatch(t *testing.T) {
func TestMuxMatch(t *testing.T) {
type Match struct {
URL string
Ok bool
@@ -292,7 +292,7 @@ func TestServeMuxMatch(t *testing.T) {
for i, test := range tests {
h := &nopHandler{}
var mux ServeMux
var mux Mux
mux.Handle(test.Pattern, h)
for _, match := range tests[i].Matches {