摘要:
go recover运用 package recovery_test import ( "fmt" "testing" ) func TriggerPanic() { a := []int{1, 2, 3} fmt.Println(a[4]) } func RecoverError() { fmt. 阅读全文
go recover运用 package recovery_test import ( "fmt" "testing" ) func TriggerPanic() { a := []int{1, 2, 3} fmt.Println(a[4]) } func RecoverError() { fmt. 阅读全文
posted @ 2024-05-17 14:35
Jikefan
阅读(14)
评论(0)
推荐(0)

浙公网安备 33010602011771号