MCPcopy
hub / github.com/rs/zerolog / Uints64

Method Uints64

event.go:707–713  ·  view source on GitHub ↗

Uints64 adds the field key with i as a []int64 to the *Event context.

(key string, i []uint64)

Source from the content-addressed store, hash-verified

705
706// Uints64 adds the field key with i as a []int64 to the *Event context.
707func (e *Event) Uints64(key string, i []uint64) *Event {
708 if e == nil {
709 return e
710 }
711 e.buf = enc.AppendUints64(enc.AppendKey(e.buf, key), i)
712 return e
713}
714
715// Float32 adds the field key with f as a float32 to the *Event context.
716func (e *Event) Float32(key string, f float32) *Event {

Callers 6

TestEvent_WithNilEventFunction · 0.95
TestWithPluralsFunction · 0.45
TestFieldsArrayNilFunction · 0.45
TestFieldsArrayEmptyFunction · 0.45

Calls 2

AppendUints64Method · 0.65
AppendKeyMethod · 0.65

Tested by 6

TestEvent_WithNilEventFunction · 0.76
TestWithPluralsFunction · 0.36
TestFieldsArrayNilFunction · 0.36
TestFieldsArrayEmptyFunction · 0.36