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

Method Int8

event.go:554–560  ·  view source on GitHub ↗

Int8 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

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 {
555 if e == nil {
556 return e
557 }
558 e.buf = enc.AppendInt8(enc.AppendKey(e.buf, key), i)
559 return e
560}
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 {

Callers 5

TestEvent_WithNilEventFunction · 0.95
TestWithFunction · 0.45
TestFieldsFunction · 0.45
TestFieldsDisabledFunction · 0.45
TestArrayFunction · 0.45

Calls 2

AppendInt8Method · 0.65
AppendKeyMethod · 0.65

Tested by 5

TestEvent_WithNilEventFunction · 0.76
TestWithFunction · 0.36
TestFieldsFunction · 0.36
TestFieldsDisabledFunction · 0.36
TestArrayFunction · 0.36