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

Function Int

field.go:152–154  ·  field.go::Int

Int constructs a field with the given key and value.

(key string, val int)

Source from the content-addressed store, hash-verified

150
151// Int constructs a field with the given key and value.
152func Int(key string, val int) Field {
153 return Int64(key, int64(val))
154}
155
156// Intp constructs a field that carries a *int. The returned Field will safely
157// and explicitly represent `nil` when appropriate.

Callers 15

Example_presetsFunction · 0.92
ExampleNamespaceFunction · 0.92
ExampleDictFunction · 0.92
ExampleDictObjectFunction · 0.92
TestJSONEncodeEntryFunction · 0.92
TestObserverFunction · 0.92
TestObserverWithFunction · 0.92
TestFiltersFunction · 0.92
fakeFieldsFunction · 0.92
TestFieldConstructorsFunction · 0.85

Calls 1

Int64Function · 0.85

Tested by 15

Example_presetsFunction · 0.74
ExampleNamespaceFunction · 0.74
ExampleDictFunction · 0.74
ExampleDictObjectFunction · 0.74
TestJSONEncodeEntryFunction · 0.74
TestObserverFunction · 0.74
TestObserverWithFunction · 0.74
TestFiltersFunction · 0.74
fakeFieldsFunction · 0.74
TestFieldConstructorsFunction · 0.68