add mw to resolve ip address

This commit is contained in:
juancwu 2026-04-26 13:14:30 +00:00
commit 1f1bb7a1aa
7 changed files with 298 additions and 5 deletions

View file

@ -166,4 +166,3 @@ func TestConflictingPatternsPanic(t *testing.T) {
}()
m.Get("/x", func(w http.ResponseWriter, r *http.Request) {})
}

View file

@ -4,8 +4,8 @@ import "testing"
func TestSplitPattern(t *testing.T) {
cases := []struct {
in string
method, host, path string
in string
method, host, path string
}{
{"/foo", "", "", "/foo"},
{"GET /foo", "GET", "", "/foo"},