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

Method Bools

event.go:527–533  ·  view source on GitHub ↗

Bools adds the field key with val as a []bool to the *Event context.

(key string, b []bool)

Source from the content-addressed store, hash-verified

525
526// Bools adds the field key with val as a []bool to the *Event context.
527func (e *Event) Bools(key string, b []bool) *Event {
528 if e == nil {
529 return e
530 }
531 e.buf = enc.AppendBools(enc.AppendKey(e.buf, key), b)
532 return e
533}
534
535// Int adds the field key with i as a int to the *Event context.
536func (e *Event) Int(key string, i int) *Event {

Callers 8

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

Calls 2

AppendBoolsMethod · 0.65
AppendKeyMethod · 0.65

Tested by 8

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