recodeGo
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
package core
|
||||
|
||||
import (
|
||||
"../contract"
|
||||
"math"
|
||||
"sync"
|
||||
"time"
|
||||
"yitidgen/contract"
|
||||
)
|
||||
|
||||
type SnowWorkerM1 struct {
|
||||
@@ -7,10 +7,10 @@
|
||||
package core
|
||||
|
||||
import (
|
||||
"../contract"
|
||||
"fmt"
|
||||
"strconv"
|
||||
"sync/atomic"
|
||||
"yitidgen/contract"
|
||||
)
|
||||
|
||||
type SnowWorkerM2 struct {
|
||||
1
Go/source/go.mod
Normal file
1
Go/source/go.mod
Normal file
@@ -0,0 +1 @@
|
||||
module "yitidgen"
|
||||
@@ -7,10 +7,10 @@
|
||||
package idgen
|
||||
|
||||
import (
|
||||
"../contract"
|
||||
"../core"
|
||||
"math"
|
||||
"time"
|
||||
"yitidgen/contract"
|
||||
"yitidgen/core"
|
||||
)
|
||||
|
||||
type DefaultIdGenerator struct {
|
||||
@@ -7,8 +7,8 @@
|
||||
package idgen
|
||||
|
||||
import (
|
||||
"../contract"
|
||||
"sync"
|
||||
"yitidgen/contract"
|
||||
)
|
||||
|
||||
var ins *YitIdHelper
|
||||
@@ -1,10 +1,10 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"../yitidgen/contract"
|
||||
"../yitidgen/idgen"
|
||||
"fmt"
|
||||
"time"
|
||||
"yitidgen/contract"
|
||||
"yitidgen/idgen"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
Reference in New Issue
Block a user