Skip to content

Commit 0c3307e

Browse files
committed
Bump minimum Go to 1.23, always use request.Pattern
Go 1.26 is out now so we can bump our minimum Go to 1.23
1 parent 7d93ee3 commit 0c3307e

5 files changed

Lines changed: 3 additions & 38 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
strategy:
2222
matrix:
23-
go-version: [1.22.x, 1.23.x, 1.24.x, 1.25.x, 1.26.x]
23+
go-version: [1.23.x, 1.24.x, 1.25.x, 1.26.x]
2424
os: [ubuntu-latest, windows-latest]
2525

2626
runs-on: ${{ matrix.os }}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module github.com/go-chi/chi/v5
22

33
// Chi supports the four most recent major versions of Go.
44
// See https://github.com/go-chi/chi/issues/963.
5-
go 1.22
5+
go 1.23

mux.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,9 +472,7 @@ func (mx *Mux) routeHTTP(w http.ResponseWriter, r *http.Request) {
472472
value := rctx.URLParams.Values[i]
473473
r.SetPathValue(key, value)
474474
}
475-
if supportsPattern {
476-
setPattern(rctx, r)
477-
}
475+
r.Pattern = rctx.routePattern
478476

479477
h.ServeHTTP(w, r)
480478
return

pattern.go

Lines changed: 0 additions & 16 deletions
This file was deleted.

pattern_fallback.go

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)