1
0
mirror of https://github.com/rs/zerolog synced 2026-06-08 17:13:30 +00:00

chore: adding any function to context (#580)

* chore: adding any function to context
* fixes
This commit is contained in:
Manjunatha Shetty H
2023-08-18 23:11:23 +05:30
committed by GitHub
parent 158e4ad5c3
commit 802c88f065
+5
View File
@@ -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
}