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

Method Uint64

event.go:698–704  ·  view source on GitHub ↗

Uint64 adds the field key with i as a uint64 to the *Event context.

(key string, i uint64)

Source from the content-addressed store, hash-verified

696
697// Uint64 adds the field key with i as a uint64 to the *Event context.
698func (e *Event) Uint64(key string, i uint64) *Event {
699 if e == nil {
700 return e
701 }
702 e.buf = enc.AppendUint64(enc.AppendKey(e.buf, key), i)
703 return e
704}
705
706// Uints64 adds the field key with i as a []int64 to the *Event context.
707func (e *Event) Uints64(key string, i []uint64) *Event {

Callers 10

TestEvent_WithNilEventFunction · 0.95
TestWithFunction · 0.45
TestWithResetFunction · 0.45
TestFieldsFunction · 0.45
TestFieldsDisabledFunction · 0.45
TestArrayFunction · 0.45
TestConsoleLoggerFunction · 0.45
appendSlogAttrFunction · 0.45
ExampleNewJournalDWriterFunction · 0.45

Calls 2

AppendUint64Method · 0.65
AppendKeyMethod · 0.65

Tested by 9

TestEvent_WithNilEventFunction · 0.76
TestWithFunction · 0.36
TestWithResetFunction · 0.36
TestFieldsFunction · 0.36
TestFieldsDisabledFunction · 0.36
TestArrayFunction · 0.36
TestConsoleLoggerFunction · 0.36
ExampleNewJournalDWriterFunction · 0.36