Int constructs a field with the given key and value.
(key string, val int)
| 150 | |
| 151 | // Int constructs a field with the given key and value. |
| 152 | func 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. |