1 Star 0 Fork 0

zhouqunjie/uuid

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
counter.go 352 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhouqj 提交于 2022-05-11 22:34 +08:00 . init
// This file is part of the guuid package
//
// (c) Dreamans <dreamans@163.com>
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
package guuid
import (
"sync/atomic"
)
var idCounter uint32 = 0
func deltaIdCounter() uint32 {
return atomic.AddUint32(&idCounter, 1)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/zhouqunjie/uuid.git
git@gitee.com:zhouqunjie/uuid.git
zhouqunjie
uuid
uuid
v0.0.1

搜索帮助