The '_______' function in Go is used to recover from panics within deferred functions.

  • defer
  • handle
  • panic
  • recover
The recover function in Go is used to recover from panics within deferred functions. When a function is called within a deferred function and panics, the recover function allows the program to regain control and resume normal execution. It returns the value passed to the call to panic, or nil if the function has not panicked.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *