-
Book Overview & Buying
-
Table Of Contents
Practical Systems Programming in Go
By :
Most real-world programs do not just crunch numbers in memory; they need to handle information that comes from outside sources. That might be a JSON file with configuration values, a CSV export from another system, or an entire database full of records that your application needs to query and update. Working with structured data and databases is where your Go programs start to feel real as you are dealing with the same formats and systems that production software uses every day. In this chapter, we will explore how Go makes it easy to read and write structured data in JSON and how to interact with databases using the database/sql package. You will see how to parse data into Go types, transform it, and write it back out again. We will also use structured data to drive graph-processing tasks such as shortest-path computation and the traveling salesman problem (TSP) to show how real programs combine data handling with computation. Finally, we...