Make ResponseWriter a struct

Make ResponseWriter a struct again so that it can be extended in a
backwards-compatible way.
This commit is contained in:
Adnan Maolood
2021-02-23 20:40:22 -05:00
parent 64f9381bbc
commit a65c3c3d4f
7 changed files with 49 additions and 63 deletions

View File

@@ -8,7 +8,7 @@ import (
type nopHandler struct{}
func (*nopHandler) ServeGemini(context.Context, ResponseWriter, *Request) {}
func (*nopHandler) ServeGemini(context.Context, *ResponseWriter, *Request) {}
func TestServeMuxMatch(t *testing.T) {
type Match struct {