修改mod
This commit is contained in:
@@ -2,10 +2,12 @@ module code.yun.ink/pkg/timerx
|
|||||||
|
|
||||||
go 1.19
|
go 1.19
|
||||||
|
|
||||||
require github.com/go-redis/redis/v8 v8.11.5
|
require (
|
||||||
|
code.yun.ink/pkg/lockx v1.0.0
|
||||||
|
github.com/go-redis/redis/v8 v8.11.5
|
||||||
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
code.yun.ink/pkg/lockx v1.0.0 // indirect
|
|
||||||
github.com/cespare/xxhash/v2 v2.1.2 // indirect
|
github.com/cespare/xxhash/v2 v2.1.2 // indirect
|
||||||
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
|
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
code.yun.ink/open/timer v1.0.1 h1:ZWecU5K0rFB15p8DZubozTEwo1vrO4mUCRwEoD1tbEQ=
|
||||||
code.yun.ink/pkg/lockx v1.0.0 h1:xoLyf05PrOAhLID2LbJsEXA8YYURJTK/7spEk/hu/Rs=
|
code.yun.ink/pkg/lockx v1.0.0 h1:xoLyf05PrOAhLID2LbJsEXA8YYURJTK/7spEk/hu/Rs=
|
||||||
code.yun.ink/pkg/lockx v1.0.0/go.mod h1:0xUU5xD8fui0Kf7g4TnFmaxUDo59CH2WM+sitko2SLc=
|
code.yun.ink/pkg/lockx v1.0.0/go.mod h1:0xUU5xD8fui0Kf7g4TnFmaxUDo59CH2WM+sitko2SLc=
|
||||||
github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE=
|
github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE=
|
||||||
|
|||||||
+9
-4
@@ -1,15 +1,20 @@
|
|||||||
package timerx_test
|
package timerx_test
|
||||||
|
|
||||||
import "testing"
|
import (
|
||||||
|
"fmt"
|
||||||
|
"testing"
|
||||||
|
)
|
||||||
|
|
||||||
// 单元测试
|
// 单元测试
|
||||||
|
|
||||||
func TestHelloWorld(t *testing.T) {
|
func TestHelloWorld(t *testing.T) {
|
||||||
// 日志
|
// 日志
|
||||||
t.Log("hello world")
|
// t.Log("hello world")
|
||||||
|
|
||||||
s := "ddd"
|
fmt.Println("hello world")
|
||||||
t.Logf("Log测试%s", s)
|
|
||||||
|
// s := "ddd"
|
||||||
|
// t.Logf("Log测试%s", s)
|
||||||
// t.Errorf("ErrorF %s", s)
|
// t.Errorf("ErrorF %s", s)
|
||||||
|
|
||||||
// 标记错误(继续运行)
|
// 标记错误(继续运行)
|
||||||
|
|||||||
Reference in New Issue
Block a user