New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
c01/c01_12 #41
Comments
defer在return后调用 |
我们知道在 Python 中可以使用 |
有点像python 中 finanly的用法 |
并非defer在return后调用 |
defer和return涉及到一个具名参数问题,先赋值返回值,然后defer,最后return |
/**
// go 版本 // other operations |
1.12 流程控制:defer 延迟语句 — Go编程时光 1.0.0 documentation
https://golang.iswbm.com/c01/c01_12.html
The text was updated successfully, but these errors were encountered: