Int32 constructs a field with the given key and value.
(key string, val int32)
| 178 | |
| 179 | // Int32 constructs a field with the given key and value. |
| 180 | func 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. |
no outgoing calls