Advertisement
cwchen

[Go] Panic demo.

Oct 28th, 2017
512
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.13 KB | None | 0 0
  1. package main
  2.  
  3. import (
  4.     "fmt"
  5. )
  6.  
  7. func main() {
  8.     panic("Some error")
  9.  
  10.     // It didn't occur.
  11.     fmt.Println("More message")
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement