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

Method Ints8

event.go:563–569  ·  view source on GitHub ↗

Ints8 adds the field key with i as a []int8 to the *Event context.

(key string, i []int8)

Source from the content-addressed store, hash-verified

561
562// Ints8 adds the field key with i as a []int8 to the *Event context.
563func (e *Event) Ints8(key string, i []int8) *Event {
564 if e == nil {
565 return e
566 }
567 e.buf = enc.AppendInts8(enc.AppendKey(e.buf, key), i)
568 return e
569}
570
571// Int16 adds the field key with i as a int16 to the *Event context.
572func (e *Event) Int16(key string, i int16) *Event {

Callers 6

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

Calls 2

AppendInts8Method · 0.65
AppendKeyMethod · 0.65

Tested by 6

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