修改mod

This commit is contained in:
Yun
2024-04-04 21:57:26 +08:00
parent 4d07ce2c09
commit 88056ee8e9
3 changed files with 14 additions and 6 deletions
+4 -2
View File
@@ -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
View File
@@ -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
View File
@@ -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)
// 标记错误(继续运行) // 标记错误(继续运行)