mirror of
https://gitee.com/gitea/gitea
synced 2025-12-04 07:10:37 +08:00
Added all required dependencies
This commit is contained in:
13
vendor/github.com/jtolds/gls/gen_sym.go
generated
vendored
Normal file
13
vendor/github.com/jtolds/gls/gen_sym.go
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
package gls
|
||||
|
||||
var (
|
||||
symPool = &idPool{}
|
||||
)
|
||||
|
||||
// ContextKey is a throwaway value you can use as a key to a ContextManager
|
||||
type ContextKey struct{ id uint }
|
||||
|
||||
// GenSym will return a brand new, never-before-used ContextKey
|
||||
func GenSym() ContextKey {
|
||||
return ContextKey{id: symPool.Acquire()}
|
||||
}
|
||||
Reference in New Issue
Block a user