tttlkkkl / lihuaio.com

个人博客。
https://lihuaio.com
0 stars 0 forks source link

tech/go/unid/ #1

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

golang 利用原子操作实现唯一ID生成器 | 泛黄的日历

前言 在作为练习golang建立的IM项目中有个需求,客户端连接上来并且通过认证之后需……

https://lihuaio.com/tech/go/unid/

jiang-zx commented 3 years ago

直接用atomic.AddUint32呢