mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 01:55:35 +08:00
update book code
This commit is contained in:
9
eBook/examples/chapter_13/panic.go
Normal file
9
eBook/examples/chapter_13/panic.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
fmt.Println("Starting the program")
|
||||
panic("A severe error occurred: stopping the program!")
|
||||
fmt.Println("Ending the program")
|
||||
}
|
Reference in New Issue
Block a user