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

Method Int64

event.go:608–614  ·  view source on GitHub ↗

Int64 adds the field key with i as a int64 to the *Event context.

(key string, i int64)

Source from the content-addressed store, hash-verified

606
607// Int64 adds the field key with i as a int64 to the *Event context.
608func (e *Event) Int64(key string, i int64) *Event {
609 if e == nil {
610 return e
611 }
612 e.buf = enc.AppendInt64(enc.AppendKey(e.buf, key), i)
613 return e
614}
615
616// Ints64 adds the field key with i as a []int64 to the *Event context.
617func (e *Event) Ints64(key string, i []int64) *Event {

Callers 7

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

Calls 2

AppendInt64Method · 0.65
AppendKeyMethod · 0.65

Tested by 5

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