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

Function Dict

event.go:208–210  ·  view source on GitHub ↗

Dict creates an Event to be used with the *Event.Dict method. Call usual field methods like Str, Int etc to add fields to this event and give it as argument the *Event.Dict method. NOTE: This function is deprecated because it does not preserve the stack, hooks, and context from the parent event. Dep

()

Source from the content-addressed store, hash-verified

206// the stack, hooks, and context from the parent event.
207// Deprecated: Use Event.CreateDict instead.
208func Dict() *Event {
209 return newEvent(nil, DebugLevel, false, nil, nil)
210}
211
212// CreateArray creates an Array to be used with the *Event.Array method.
213// It preserves the stack, hooks, and context from the parent event.

Callers 1

TestArrayFunction · 0.85

Calls 1

newEventFunction · 0.85

Tested by 1

TestArrayFunction · 0.68