Complex128 constructs a field that carries a complex number. Unlike most numeric fields, this costs an allocation (to convert the complex128 to interface{}).
(key string, val complex128)
| 88 | // numeric fields, this costs an allocation (to convert the complex128 to |
| 89 | // interface{}). |
| 90 | func Complex128(key string, val complex128) Field { |
| 91 | return Field{Key: key, Type: zapcore.Complex128Type, Interface: val} |
| 92 | } |
| 93 | |
| 94 | // Complex128p constructs a field that carries a *complex128. The returned Field will safely |
| 95 | // and explicitly represent `nil` when appropriate. |
no outgoing calls