docs: add example

This commit is contained in:
liwei committed 2021-03-26 16:22:53 +08:00
1 parent 01501ca857
commit 936e193c20
10 files changed
+120 -143

No files matched your search

+4 -2
View File
@@ -9,9 +9,11 @@ const (
EventKeyProgress = "progress"
EventKeyError = "error"
EventKeyDone = "done"
EventKeyFinally = "finally"
)
type Event struct {
EventKey
TaskInfo
Key EventKey
Task *TaskInfo
Err error
}