1
0
mirror of synced 2026-04-18 22:38:41 +08:00
This commit is contained in:
zhouzj
2021-03-20 14:03:04 +08:00
parent 11b12a73b7
commit dd8e0a1a43
12 changed files with 9 additions and 8 deletions

View File

@@ -4,7 +4,7 @@
1.go 1.16
2. Ĭ<EFBFBD>ϲ<EFBFBD><EFBFBD><EFBFBD>GOROOT<EFBFBD><EFBFBD>ʽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޸<EFBFBD>ΪGo-Modules
2. <EFBFBD><EFBFBD><EFBFBD><EFBFBD>Go-Modules
## Go<47><6F><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE>

View File

@@ -7,10 +7,10 @@
package core
import (
"../contract"
"math"
"sync"
"time"
"yitidgen/contract"
)
type SnowWorkerM1 struct {

View File

@@ -7,10 +7,10 @@
package core
import (
"../contract"
"fmt"
"strconv"
"sync/atomic"
"yitidgen/contract"
)
type SnowWorkerM2 struct {

1
Go/source/go.mod Normal file
View File

@@ -0,0 +1 @@
module "yitidgen"

View File

@@ -7,10 +7,10 @@
package idgen
import (
"../contract"
"../core"
"math"
"time"
"yitidgen/contract"
"yitidgen/core"
)
type DefaultIdGenerator struct {

View File

@@ -7,8 +7,8 @@
package idgen
import (
"../contract"
"sync"
"yitidgen/contract"
)
var ins *YitIdHelper

View File

@@ -1,10 +1,10 @@
package main
import (
"../yitidgen/contract"
"../yitidgen/idgen"
"fmt"
"time"
"yitidgen/contract"
"yitidgen/idgen"
)
func main() {