原书出处
Cloud Native Go (Matthew A. Titmus)
03 Go Language Foundations
The two constructs are not equivalent however: in the former example err is scoped only to the if statement; in the latter example err is visible to the entire containing function. The switch Statement As in other languages, Go provides a switch statement that provides a way to more concisely express a series of if-then-else
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Cloud Native Go (Matthew A. Titmus)/_epub-src/OEBPS/ch03.xhtml
EPUB SHA-256:1154caa7b61465daf957a7d8f1350ef24ab5db9c850cab5987aae5bc74986022