Introduction
In the previous chapter, you learned how to interact with the filesystem your Go app is running on. You learned about the importance of exit codes and how to customize your scripts to take arguments, thus adding flexibility to your applications. You also learned how to handle different signals that your application receives.
In this chapter, you will further master your Go skills by learning how to use SQL and databases in Go. As a developer, it is impossible to get by without a proper understanding of persistent data storage and databases. Our applications process input and produce output, but most of the time, if not in all cases, a database is involved in the process. This database can be in-memory (stored in the computer’s RAM) or file-based (a single file in a directory), and it can live on local or remote storage. A database engine can be installed locally, as we will do later in this chapter, but it is also possible to use cloud providers, which allow...