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

Method Uints32

event.go:689–695  ·  view source on GitHub ↗

Uints32 adds the field key with i as a []int32 to the *Event context.

(key string, i []uint32)

Source from the content-addressed store, hash-verified

687
688// Uints32 adds the field key with i as a []int32 to the *Event context.
689func (e *Event) Uints32(key string, i []uint32) *Event {
690 if e == nil {
691 return e
692 }
693 e.buf = enc.AppendUints32(enc.AppendKey(e.buf, key), i)
694 return e
695}
696
697// Uint64 adds the field key with i as a uint64 to the *Event context.
698func (e *Event) Uint64(key string, i uint64) *Event {

Callers 6

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

Calls 2

AppendUints32Method · 0.65
AppendKeyMethod · 0.65

Tested by 6

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