Summary
In this chapter, we explored some of the tips and techniques for managing a GUI-based application written with Go. By carefully planning the modules of an application and how they interact, we saw that we can make any application easier to test and maintain. Since higher test coverage is a factor when it comes to increasing the quality of software applications, we looked at how we can use these techniques to test our graphical code, which is a notoriously difficult topic. We stepped through an example of writing test code for a simple GUI application that could be run automatically.
When it becomes necessary to adapt to a specific operating system, we need to learn how our code can adapt. With appropriate abstractions or by writing platform-specific code that is switched out by generic fallbacks, we can keep our applications easy to maintain, despite operating system differences.
Throughout this book, we have been running examples from the command line, next to their...