test&doc: add example and update doc for function package

This commit is contained in:
dudaodong committed 2023-01-06 17:12:32 +08:00
1 parent be444f521d
commit ca2a51b37e
8 files changed
+136 -70

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ import (
func TestWatcher(t *testing.T) {
assert := internal.NewAssert(t, "TestWatcher")
w := &Watcher{}
w := NewWatcher()
w.Start()
longRunningTask()