Arr creates an array to be added to an Event or Context. WARNING: This function is deprecated because it does not preserve the stack, hooks, and context from the parent event. Deprecated: Use Event.CreateArray or Context.CreateArray instead.
()
| 48 | // the stack, hooks, and context from the parent event. |
| 49 | // Deprecated: Use Event.CreateArray or Context.CreateArray instead. |
| 50 | func Arr() *Array { |
| 51 | a := arrayPool.Get().(*Array) |
| 52 | a.buf = a.buf[:0] |
| 53 | a.stack = false |
| 54 | a.ctx = nil |
| 55 | a.ch = nil |
| 56 | return a |
| 57 | } |
| 58 | |
| 59 | // MarshalZerologArray method here is no-op - since data is |
| 60 | // already in the needed format. |
no outgoing calls