From c6e5aef1a08d21290038e1dfd4d532d1770fce04 Mon Sep 17 00:00:00 2001 From: crusader Date: Wed, 22 Aug 2018 17:00:12 +0900 Subject: [PATCH] CtxKey added --- ctx/ctx.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ctx/ctx.go b/ctx/ctx.go index b9bd058..0a2b57d 100644 --- a/ctx/ctx.go +++ b/ctx/ctx.go @@ -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,