从Map's contents: no key will be visited more than once, but if the value mapping for that key from any point during the Range call.
这是否意味着在range调用期间不会调
我正在执行一个嵌套的,但我想知道如果LoadOrStore返回的值与映射的输入相同,我是否可以保存几行代码,我的意思是:mapaInterFace, ok := sessiones.LoadOrStore(sync.Map) if !ok{ }
而且经常这样做会产生一些丑陋的代码。更新:sessiones是sync.Map类型