ARTS-S golang panic返回默认值
摘要:
```
package main import "fmt" func fn_test_panic() (a int) { a = 2 panic("This is panic") return a
} func fn1() (a int) { a = 3 defer func(){ if p := recover(); p != nil { fmt.Println("re... 阅读全文
posted @ 2019-07-03 10:53 荷楠仁 阅读(255) 评论(0) 推荐(0) 编辑