build source
This commit is contained in:
commit
ee1fec43ed
4171 changed files with 1351288 additions and 0 deletions
16
vendor/github.com/go-chi/chi/v5/pattern.go
generated
vendored
Normal file
16
vendor/github.com/go-chi/chi/v5/pattern.go
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
//go:build go1.23 && !tinygo
|
||||
// +build go1.23,!tinygo
|
||||
|
||||
package chi
|
||||
|
||||
import "net/http"
|
||||
|
||||
// supportsPattern is true if the Go version is 1.23 and above.
|
||||
//
|
||||
// If this is true, `net/http.Request` has field `Pattern`.
|
||||
const supportsPattern = true
|
||||
|
||||
// setPattern sets the mux matched pattern in the http Request.
|
||||
func setPattern(rctx *Context, r *http.Request) {
|
||||
r.Pattern = rctx.routePattern
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue