后面的代码例子跟坑没关系啊
【 在 gpmn 的大作中提到: 】
: 以前持续用一个变量这个最坑,不小心就掉进去了,这次解决了
: Go 1.22 makes two changes to "for" loops.
: Previously, the variables declared by a "for" loop were created once and updated by each iteration. In Go 1.22, each iteration of the loop creates new variables, to avoid accidental sharing bugs. The transition support tooling described in the proposal co
: ...................
--
FROM 114.241.219.*