MCPcopy
hub / github.com/uber-go/zap / Int64

Function Int64

field.go:166–168  ·  view source on GitHub ↗

Int64 constructs a field with the given key and value.

(key string, val int64)

Source from the content-addressed store, hash-verified

164
165// Int64 constructs a field with the given key and value.
166func Int64(key string, val int64) Field {
167 return Field{Key: key, Type: zapcore.Int64Type, Integer: val}
168}
169
170// Int64p constructs a field that carries a *int64. The returned Field will safely
171// and explicitly represent `nil` when appropriate.

Callers 6

convertAttrToFieldFunction · 0.92
TestFieldConstructorsFunction · 0.85
BenchmarkInt64FieldFunction · 0.85
IntFunction · 0.85
Int64pFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestFieldConstructorsFunction · 0.68
BenchmarkInt64FieldFunction · 0.68