Skip to content
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

c04/c04_01 #64

Open
utterances-bot opened this issue Jul 4, 2023 · 1 comment
Open

c04/c04_01 #64

utterances-bot opened this issue Jul 4, 2023 · 1 comment

Comments

@utterances-bot
Copy link

4.1 学习 Go 函数:理解 Go 里的函数 — Go编程时光 1.0.0 documentation

https://golang.iswbm.com/c04/c04_01.html

Copy link

lekuyuan commented Jul 4, 2023

匿名函数一般不需要多次调用,也就是声明周期在一个相对短 的时间内就会消亡,所以可以选择匿名函数,继而有了匿名函数的两大使用场景:

  • 回调函数
  • 立即使用,不存在复用的情况

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants