Golang News http://golangnews.com Jobs, Code, Videos and News for Go hackers - everything about the go programming language Fri, 03 May 2019 11:02:00 +0000 Decoupled package communication in Go #pubsub #eventbus #messagebus <p>Decoupled packages help us to write clear code, focus on only one thing at a time. With <a href="https://github.com/mustafaturan/bus"><code>bus</code></a>&nbsp;Go package, you can get benefit of real event bus system and write decoupled packages easily. With <a href="https://github.com/mustafaturan/bus"><code>bus</code></a>&nbsp;package, any handler can listen any events, without knowing who generates the event. Thus, packages can communicate without depending on each other. Moreover, it is very easy to substitute a consumer module. As long as the new module understands the Event struct that are being sent and received, the other modules will never know.</p> 4 points posted by jabber https://dev.to/mustafaturan/decoupled-package-communication-in-go-g39 3951 Wed, 01 May 2019 04:53:00 +0000