update readme: New as message bus constructor

This commit is contained in:
Aleksandr Emelin 2018-05-08 11:40:12 +03:00
orang tua a8593b3fa8
melakukan d4344d8f5f

Melihat File

@ -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")