CtxKey added
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user