12 Star 34 Fork 11

dreamans/guuid

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
counter.go 358 Bytes
一键复制 编辑 原始数据 按行查看 历史
dreamans 提交于 2018-03-21 16:42 +08:00 . first commit
// 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/dreamans/guuid.git
git@gitee.com:dreamans/guuid.git
dreamans
guuid
guuid
7d0b13a43adc

搜索帮助