In Go, '_______' can only be called directly by the current goroutine, unlike 'defer'.

  • defer()
  • handle()
  • panic()
  • recover()
In Go, the 'panic()' function is used to cause a runtime panic, which stops normal execution of the current goroutine and begins panicking. Unlike 'defer', 'panic()' cannot be deferred and is limited to the goroutine in which it is called.
Add your answer
Loading...

Leave a comment

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