aboutsummaryrefslogtreecommitdiff
path: root/mux_test.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-02-24 00:13:44 -0500
committerAdnan Maolood <[email protected]>2021-02-24 00:13:46 -0500
commit3660698a4b7c3b029c2fe47049d5b255b29c963b (patch)
treeba1f1c1e0ba974fc3e8e645b66a7750610f84e4d /mux_test.go
parentRemove ErrHandlerTimeout (diff)
downloadgo-gemini-3660698a4b7c3b029c2fe47049d5b255b29c963b.tar.xz
go-gemini-3660698a4b7c3b029c2fe47049d5b255b29c963b.zip
Make ResponseWriter an interface
Make ResponseWriter an interface with an unexported method. Implementors must embed a ResponseWriter from elsewhere. This gives us the flexibility of an interface while allowing us to add new methods in the future.
Diffstat (limited to 'mux_test.go')
-rw-r--r--mux_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/mux_test.go b/mux_test.go
index 0ee7b82..858c1ba 100644
--- a/mux_test.go
+++ b/mux_test.go
@@ -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 {