loojee
loojee
> @smallnest > 因为o.Done没有保护,通过atomic可以保证多CPU情况下不会有问题。 类似的Java的双检查要求变量使用volatile声明。可以和Once的实现代码对照 > > > > @PureWhiteWu > > 鸟哥求教一下,为什么第四题是C呢? @smallnest > > 是因为多核cpu缓存不一致吗?
> go从哪个版本开始var c chan int可以直接使用,而不是像我最接触的c:=make(chan int,1)? > 谢谢 这个是声明一个channel,没有为它分配内存,要使用它还是需要make的,看下面的闭包函数。
> > @smallnest > > 正确答案加上了,回答的还不错。 > > > @PureWhiteWu > > > > > > 1. D > > > 2. D > > > 3. D > >...
I have met the same issue, I found out that switching to the system's english input can fix it.
@dannyneira  If I use the Chinese Input, I can't call the hotkey window. It's my hotkey settings. 