Expensive wraps a log value that is expensive to compute and should only be called if the log line is actually emitted.
(fn func() any)
| 13 | // Expensive wraps a log value that is expensive to compute and should only |
| 14 | // be called if the log line is actually emitted. |
| 15 | func Expensive(fn func() any) expensive { |
| 16 | return expensive{fn} |
| 17 | } |
| 18 | |
| 19 | type expensive struct { |
| 20 | fn func() any |
no outgoing calls
no test coverage detected