Skip to content

Commit

Permalink
chore: adding any function to context (rs#580)
Browse files Browse the repository at this point in the history
* chore: adding any function to context
* fixes
  • Loading branch information
shettyh authored and mAdkins committed Mar 2, 2024
1 parent 7467982 commit a56e98d
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 a56e98d

Please sign in to comment.