摘要: package mainimport "fmt"var name string= "go"func TestName() string { defer func() { name="python" }() fmt.Println(name) return name}func main() { myn 阅读全文
posted @ 2022-02-18 21:46 技术颜良 阅读(76) 评论(0) 推荐(0) 编辑
摘要: https://draveness.me/golang/docs/part2-foundation/ch05-keyword/golang-panic-recover/ func test(){ fmt.Println("run......") defer func() { if err:=reco 阅读全文
posted @ 2022-02-18 11:50 技术颜良 阅读(113) 评论(0) 推荐(0) 编辑
摘要: https://draveness.me/golang/docs/part3-runtime/ch06-concurrency/golang-sync-primitives/ https://mojotv.cn/404#Golang https://www.bookstack.cn/read/qcr 阅读全文
posted @ 2022-02-18 11:09 技术颜良 阅读(34) 评论(0) 推荐(0) 编辑