6 ms·
I prefer stack traces in errors. It's gives so much more automatically so you don't have to worry about manual annotation. Stack traces and debug logs are the w
by mukunda_johnson 2y ago
I prefer stack traces in errors. It's gives so much more automatically so you don't have to worry about manual annotation. Stack traces and debug logs are the way to go. I like to use panics for exceptional conditions just for the convenient escape with the stack trace.
- ignoramous 2y ago> I like to use panics for exceptional conditions just for the convenient escape with the stack trace. One can debug.PrintStack(), instead. https://pkg.go.dev/runtime/debug#PrintStack https://pkg.go.dev/runtime/debug#PrintStack