This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
hummingbird
/
idgenerator
Not watched
Unwatch
Watch all
Watch but not notify
2
Star
0
Fork
0
Code
Releases
6
Wiki
Activity
Issues
5
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
recodeGo
tags/v1.0.0
zhouzj
3 years ago
parent
11b12a73b7
commit
dd8e0a1a43
12 changed files
with
9 additions
and
8 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
Go/README.md
+0
-0
Go/source/contract/IIdGenerator.go
+0
-0
Go/source/contract/ISnowWorker.go
+0
-0
Go/source/contract/IdGeneratorException.go
+0
-0
Go/source/contract/IdGeneratorOptions.go
+0
-0
Go/source/contract/OverCostActionArg.go
+1
-1
Go/source/core/snowWorkerM1.go
+1
-1
Go/source/core/snowWorkerM2.go
+1
-0
Go/source/go.mod
+2
-2
Go/source/idgen/DefaultIdGenerator.go
+1
-1
Go/source/idgen/YitIdHelper.go
+2
-2
Go/source/test/main.go
+ 1
- 1
Go/README.md
View File
@@ -4,7 +4,7 @@
1.go 1.16
2.
默认采用GOROOT方式编译,你可修改为
Go-Modules
2.
启用
Go-Modules
## Go代码示例
Go/source/yitidgen/contract/IIdGenerator.go → Go/source/contract/IIdGenerator.go
View File
Go/source/yitidgen/contract/ISnowWorker.go → Go/source/contract/ISnowWorker.go
View File
Go/source/yitidgen/contract/IdGeneratorException.go → Go/source/contract/IdGeneratorException.go
View File
Go/source/yitidgen/contract/IdGeneratorOptions.go → Go/source/contract/IdGeneratorOptions.go
View File
Go/source/yitidgen/contract/OverCostActionArg.go → Go/source/contract/OverCostActionArg.go
View File
Go/source/yitidgen/core/snowWorkerM1.go → Go/source/core/snowWorkerM1.go
View File
@@ -7,10 +7,10 @@
package core
import (
"../contract"
"math"
"sync"
"time"
"yitidgen/contract"
)
type SnowWorkerM1 struct {
Go/source/yitidgen/core/snowWorkerM2.go → Go/source/core/snowWorkerM2.go
View File
@@ -7,10 +7,10 @@
package core
import (
"../contract"
"fmt"
"strconv"
"sync/atomic"
"yitidgen/contract"
)
type SnowWorkerM2 struct {
+ 1
- 0
Go/source/go.mod
View File
@@ -0,0 +1 @@
module "yitidgen"
Go/source/yitidgen/idgen/DefaultIdGenerator.go → Go/source/idgen/DefaultIdGenerator.go
View File
@@ -7,10 +7,10 @@
package idgen
import (
"../contract"
"../core"
"math"
"time"
"yitidgen/contract"
"yitidgen/core"
)
type DefaultIdGenerator struct {
Go/source/yitidgen/idgen/YitIdHelper.go → Go/source/idgen/YitIdHelper.go
View File
@@ -7,8 +7,8 @@
package idgen
import (
"../contract"
"sync"
"yitidgen/contract"
)
var ins *YitIdHelper
+ 2
- 2
Go/source/test/main.go
View File
@@ -1,10 +1,10 @@
package main
import (
"../yitidgen/contract"
"../yitidgen/idgen"
"fmt"
"time"
"yitidgen/contract"
"yitidgen/idgen"
)
func main() {
Write
Preview
Loading…
Cancel
Save