MCPcopy
hub / github.com/rs/zerolog / Any

Method Any

event.go:820–822  ·  view source on GitHub ↗

Any is a wrapper around Event.Interface.

(key string, i interface{})

Source from the content-addressed store, hash-verified

818
819// Any is a wrapper around Event.Interface.
820func (e *Event) Any(key string, i interface{}) *Event {
821 return e.Interface(key, i)
822}
823
824// Interface adds the field key with i marshaled using reflection.
825func (e *Event) Interface(key string, i interface{}) *Event {

Callers 7

TestWithFunction · 0.45
TestFieldsFunction · 0.45
TestFieldsDisabledFunction · 0.45
BenchmarkLogFieldTypeFunction · 0.45
appendSlogAttrFunction · 0.45

Calls 1

InterfaceMethod · 0.95

Tested by 6

TestWithFunction · 0.36
TestFieldsFunction · 0.36
TestFieldsDisabledFunction · 0.36
BenchmarkLogFieldTypeFunction · 0.36