原书出处
Cloud Native Go (Matthew A. Titmus)
03 Go Language Foundations
If multiple defer calls are used in a function, each is pushed onto a stack. When the surrounding function returns, the deferred calls are executed in last-in-first-out order. For example: func main() { defer fmt.Println("world") defer fmt.Println("cruel") defer fmt.Println("goodbye") } The above function, when run, will output the following: goodbye cruel world Pointers as Parameters
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Cloud Native Go (Matthew A. Titmus)/_epub-src/OEBPS/ch03.xhtml
EPUB SHA-256:1154caa7b61465daf957a7d8f1350ef24ab5db9c850cab5987aae5bc74986022