mirror of
https://github.com/beego/bee.git
synced 2025-07-10 21:41:01 +00:00
add vendor
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