Skip to content

Commit

Permalink
chore: adding any function to context (#580)
Browse files Browse the repository at this point in the history
* chore: adding any function to context
* fixes
  • Loading branch information
shettyh committed Aug 18, 2023
1 parent 158e4ad commit 802c88f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 802c88f

Please sign in to comment.