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

Method Ints

event.go:545–551  ·  view source on GitHub ↗

Ints adds the field key with i as a []int to the *Event context.

(key string, i []int)

Source from the content-addressed store, hash-verified

543
544// Ints adds the field key with i as a []int to the *Event context.
545func (e *Event) Ints(key string, i []int) *Event {
546 if e == nil {
547 return e
548 }
549 e.buf = enc.AppendInts(enc.AppendKey(e.buf, key), i)
550 return e
551}
552
553// Int8 adds the field key with i as a int8 to the *Event context.
554func (e *Event) Int8(key string, i int8) *Event {

Callers 8

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

Calls 2

AppendIntsMethod · 0.65
AppendKeyMethod · 0.65

Tested by 8

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