Float32 adds the field key with f as a float32 to the *Event context.
(key string, f float32)
| 714 | |
| 715 | // Float32 adds the field key with f as a float32 to the *Event context. |
| 716 | func (e *Event) Float32(key string, f float32) *Event { |
| 717 | if e == nil { |
| 718 | return e |
| 719 | } |
| 720 | e.buf = enc.AppendFloat32(enc.AppendKey(e.buf, key), f, FloatingPointPrecision) |
| 721 | return e |
| 722 | } |
| 723 | |
| 724 | // Floats32 adds the field key with f as a []float32 to the *Event context. |
| 725 | func (e *Event) Floats32(key string, f []float32) *Event { |