配置变更的时候自动同步,不再需要手工点击同步

This commit is contained in:
GoEdgeLab
2020-11-18 10:07:29 +08:00
parent b9edc0ce8a
commit a09e8be6e9
10 changed files with 134 additions and 44 deletions

View File

@@ -0,0 +1,16 @@
package events
import "testing"
func TestOn(t *testing.T) {
On("hello", func() {
t.Log("world")
})
On("hello", func() {
t.Log("world2")
})
On("hello2", func() {
t.Log("world2")
})
Notify("hello")
}