Complex64 constructs a field that carries a complex number. Unlike most numeric fields, this costs an allocation (to convert the complex64 to interface{}).
(key string, val complex64)
| 104 | // numeric fields, this costs an allocation (to convert the complex64 to |
| 105 | // interface{}). |
| 106 | func Complex64(key string, val complex64) Field { |
| 107 | return Field{Key: key, Type: zapcore.Complex64Type, Interface: val} |
| 108 | } |
| 109 | |
| 110 | // Complex64p constructs a field that carries a *complex64. The returned Field will safely |
| 111 | // and explicitly represent `nil` when appropriate. |
no outgoing calls