The '_______' keyword in Go is used to defer the execution of a function until the surrounding function returns.

  • defer
  • delay
  • panic
  • recover
In Go, the defer keyword is used to defer the execution of a function until the surrounding function returns. It's commonly used to ensure cleanup actions are performed, such as closing files or unlocking mutexes.
Add your answer
Loading...

Leave a comment

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