ch1-basic/ch1-04-func-method-interface #605
Replies: 1 comment 1 reply
-
在Go 1.22之后 loopvar 变成每个循环都重新生成了 1.4.1节的闭包对loopvar的引用部分需要重新改了 https://go.dev/wiki/LoopvarExperiment
的output在go1.22之后是2 1 0 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ch1-basic/ch1-04-func-method-interface
Go语言高级编程
https://chai2010.cn/advanced-go-programming-book/ch1-basic/ch1-04-func-method-interface.html
Beta Was this translation helpful? Give feedback.
All reactions