摘要: defer+recover机制处理错误 Go中追求代码优雅,引入机制:defer+recover机制处理错误 内置函数recover: package main import "fmt" func main() { test() fmt.Println("上面的除法操作执行成功。。。") fmt.P 阅读全文
posted @ 2022-11-13 16:58 xiaohaoge 阅读(99) 评论(0) 推荐(0)