Str constructs a field with the given string-like key and value.
(k K, v V)
| 28 | |
| 29 | // Str constructs a field with the given string-like key and value. |
| 30 | func Str[K ~string, V ~string](k K, v V) zap.Field { |
| 31 | return zap.String(string(k), string(v)) |
| 32 | } |
| 33 | |
| 34 | type stringArray[T ~string] []T |
| 35 |