initial commit

This commit is contained in:
2024-12-29 18:06:39 -05:00
commit fe4b5b6033
73 changed files with 9155 additions and 0 deletions

20
vendor/github.com/go-chi/chi/v5/path_value.go generated vendored Normal file
View File

@@ -0,0 +1,20 @@
//go:build go1.22
// +build go1.22
package chi
import "net/http"
// supportsPathValue is true if the Go version is 1.22 and above.
//
// If this is true, `net/http.Request` has methods `SetPathValue` and `PathValue`.
const supportsPathValue = true
// setPathValue sets the path values in the Request value
// based on the provided request context.
func setPathValue(rctx *Context, r *http.Request) {
for i, key := range rctx.URLParams.Keys {
value := rctx.URLParams.Values[i]
r.SetPathValue(key, value)
}
}