Wrapping Up
When it comes to distributing your application, Go supports many alternatives. Because Go applications don’t require an interpreter or a runtime, you can distribute your application in binary form, and users can run it without installing or maintaining extra dependencies. You can also distribute it as source code so users can build it themselves according to their requirements.
In this chapter, you created a new package that enables your applications to send system notifications and supports different operating systems. You designed this package to use different implementations according to the target operating system by using Go build constraints. Then, you included the notification package in the Pomodoro application and used build ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access