3 ms·
I get stacktraces from `panic()` - is this not what you're after? goroutine 1 [running]: main.b() /home/rjp/git/godiggy/test.go:8 +0x64 mai
by zimpenfish 9y ago
I get stacktraces from `panic()` - is this not what you're after?
goroutine 1 [running]:
main.b()
/home/rjp/git/godiggy/test.go:8 +0x64
main.a()
/home/rjp/git/godiggy/test.go:13 +0x9b
main.main()
/home/rjp/git/godiggy/test.go:18 +0x9b
exit status 2
- brango 9y agoI want to be able to handle errors, pass them up a few functions then log a stacktrace. I don't want to panic everywhere since robustness is important.