DEV Community

loading...

Defer Panic Recover

bearcherian profile image Bear Cherian ・1 min read

I was reading a bit about Go's builtin for panic() and recover(). I wanted to understand it a bit more, so I made a small app that tries to show how defer, panic(), and recover() all work together.

Enjoy!

https://github.com/bearcherian/defer-panic-recover

Discussion (0)

pic
Editor guide