duplikat dari https://git.mills.io/prologic/msgbus.git
update readme: New as message bus constructor
This commit is contained in:
orang tua
a8593b3fa8
melakukan
d4344d8f5f
|
@ -56,7 +56,7 @@ import (
|
|||
)
|
||||
|
||||
func main() {
|
||||
m := msgbus.NewMessageBus()
|
||||
m := msgbus.New()
|
||||
m.Put("foo", m.NewMessage([]byte("Hello World!")))
|
||||
|
||||
msg, ok := m.Get("foo")
|
||||
|
|
Memuat…
Reference in New Issue