handler: Make ServeGemini accept a Context

This commit is contained in:
Adnan Maolood
2021-02-20 15:49:07 -05:00
parent eca2afeb32
commit e9a68917c9
6 changed files with 32 additions and 26 deletions

View File

@@ -1,13 +1,14 @@
package gemini
import (
"context"
"net/url"
"testing"
)
type nopHandler struct{}
func (*nopHandler) ServeGemini(ResponseWriter, *Request) {}
func (*nopHandler) ServeGemini(context.Context, ResponseWriter, *Request) {}
func TestServeMuxMatch(t *testing.T) {
type Match struct {