O'Reilly logo
  • Kevin Lozandier thinks this is interesting:

n Go a panic is a runtime error (rather like an exception in other languages). We can cause panics ourselves using the built-in panic() function, and can stop a panic in its tracks using the recover() function (§5.5, Image 212). In theory, Go’s panic/recover functionality can be used to provide a general-purpose exception handling mechanism—but doing so is considered to be poor Go practice

From

Cover of Programming in Go: Creating Applications for the 21st Century

Note

Didn't know panic/recover was bad practice.