mirror of
https://github.com/jackc/pgx.git
synced 2025-07-30 22:28:43 +00:00
zap.Any falls back to zap.Reflect, but is better for this case, because it first checks for the types that zap handles specially. For example, time.Duration, or error, which zap.Reflect will just treat as untyped int64 or struct objects, but zap.Any is able to detect these types and print them properly.