forked from kevadesu/forgejo
Added all required dependencies
This commit is contained in:
parent
78f86abba4
commit
1ebb35b988
660 changed files with 502447 additions and 0 deletions
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()}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue