mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Updated dependencies
This commit is contained in:
12
vendor/github.com/go-chi/chi/middleware/middleware.go
generated
vendored
Normal file
12
vendor/github.com/go-chi/chi/middleware/middleware.go
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
package middleware
|
||||
|
||||
// contextKey is a value for use with context.WithValue. It's used as
|
||||
// a pointer so it fits in an interface{} without allocation. This technique
|
||||
// for defining context keys was copied from Go 1.7's new use of context in net/http.
|
||||
type contextKey struct {
|
||||
name string
|
||||
}
|
||||
|
||||
func (k *contextKey) String() string {
|
||||
return "chi/middleware context value " + k.name
|
||||
}
|
||||
Reference in New Issue
Block a user