From 802c88f065bc7019d079d03ef72e0899b2b3220e Mon Sep 17 00:00:00 2001 From: Manjunatha Shetty H Date: Fri, 18 Aug 2023 23:11:23 +0530 Subject: [PATCH] chore: adding any function to context (#580) * chore: adding any function to context * fixes --- context.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/context.go b/context.go index 353c52f..fc62ad9 100644 --- a/context.go +++ b/context.go @@ -379,6 +379,11 @@ func (c Context) Interface(key string, i interface{}) Context { return c } +// Any is a wrapper around Context.Interface. +func (c Context) Any(key string, i interface{}) Context { + return c.Interface(key, i) +} + type callerHook struct { callerSkipFrameCount int }