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

Function Int32

field.go:180–182  ·  view source on GitHub ↗

Int32 constructs a field with the given key and value.

(key string, val int32)

Source from the content-addressed store, hash-verified

178
179// Int32 constructs a field with the given key and value.
180func Int32(key string, val int32) Field {
181 return Field{Key: key, Type: zapcore.Int32Type, Integer: int64(val)}
182}
183
184// Int32p constructs a field that carries a *int32. The returned Field will safely
185// and explicitly represent `nil` when appropriate.

Callers 3

TestEqualsFunction · 0.92
TestFieldConstructorsFunction · 0.85
Int32pFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestEqualsFunction · 0.74
TestFieldConstructorsFunction · 0.68