go defer 用法

 goalng

import ( "fmt" "time" ) func main() { i, p := a() fmt.Println("return :", i, p, time.Now()) } func a() (i int, p *int) { defer func(i int) { fmt.Println("defer3 :", i, & 阅读全文