3 ms·
One of the criticisms of exception handling is that it spends cycles assembling a stack trace before it knows that it's needed. Go generates a stack-trace for
by networkimprov 8y ago
One of the criticisms of exception handling is that it spends cycles assembling a stack trace before it knows that it's needed.
Go generates a stack-trace for panic() or via runtime/debug.PrintStack(); I recommend the latter before log.Fatal().