CtxKey added
This commit is contained in:
parent
178411f148
commit
c6e5aef1a0
|
@ -5,6 +5,12 @@ import (
|
|||
"sync"
|
||||
)
|
||||
|
||||
type CtxKey string
|
||||
|
||||
func (k CtxKey) String() string {
|
||||
return string(k)
|
||||
}
|
||||
|
||||
func NewCtx(parent Ctx) Ctx {
|
||||
c := &defaultCtx{
|
||||
parent: parent,
|
||||
|
|
Loading…
Reference in New Issue
Block a user