1
0
mirror of synced 2025-12-10 15:18:16 +08:00

auto commit

This commit is contained in:
yitter
2021-04-05 23:26:12 +08:00
parent 012d99838b
commit 46328d9eae
9 changed files with 71 additions and 40 deletions

View File

@@ -1,21 +1,9 @@
# ❄ idenerator-go
# ❄ idenerator-go
## 介绍
项目更多介绍参照https://github.com/yitter/idgenerator
## Go环境
1.SDKgo1.14
2.启用 Go-Modules
```
go env -w GO111MODULE=on
# Next *ONLY* for China-Users:
go env -w GOPROXY=https://goproxy.cn,https://goproxy.io,direct
```
3. 安装方式
## 引用全局库
```
go get -u -v github.com/yitter/idgenerator-go
```
@@ -40,5 +28,18 @@ idgen.SetIdGenerator(options)
var newId = idgen.NextId()
```
## 关于Go环境
1.SDKgo1.14
2.启用 Go-Modules
```
go env -w GO111MODULE=on
# Next *ONLY* for China-Users:
go env -w GOPROXY=https://goproxy.cn,https://goproxy.io,direct
```
## 代码贡献者(按时间顺序)
guoyahao | amuluowin | houseme