func main() {
defer func() { for {} }()
}
func main() {
defer func() { select {} }()
}
func main() {
defer func() { <-make(chan bool) }()
}
func main() {
defer func() { for {} }()
}
func main() {
defer func() { select {} }()
}
func main() {
defer func() { <-make(chan bool) }()
}
本文标题:【GO-异常处理】禁止 main 函数退出的方法
本文链接:https://www.haomeiwen.com/subject/ejxcqhtx.html
网友评论