优化代码

This commit is contained in:
GoEdgeLab
2021-12-14 10:49:40 +08:00
parent 9a7e1102d5
commit 88ce69698d
2 changed files with 35 additions and 0 deletions

View File

@@ -19,3 +19,10 @@ func TestNew(t *testing.T) {
time.Sleep(1 * time.Second)
}
func TestNewWithArgs(t *testing.T) {
NewWithArgs(func(args ...interface{}) {
t.Log(args[0], args[1])
}, 1, 2)
time.Sleep(1 * time.Second)
}