Besides the data itself, the result of a query contains metadata related to the result set. This contains information about the column names, types, and other information about the data. This recipe will explain how to retrieve the data.
Reading query result metadata
Getting ready
Verify if Go is properly installed by calling the go version command in your Terminal. If the command fails, follow the Getting ready section in the first recipe of this chapter.
Set up the PostgreSQL server, as mentioned in the first recipe of this chapter.
How to do it...
- Run the following...