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
()
| 206 | // the stack, hooks, and context from the parent event. |
| 207 | // Deprecated: Use Event.CreateDict instead. |
| 208 | func 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. |