O'Reilly logo
  • Peter Malmgren thinks this is interesting:

Gophr will allow users to upload images either directly from their computer or by providing a URL for the image, which we’ll then download and store. Storing image information in a flat file isn’t the most performant way of keeping information, so we’ll store the image meta data (rather than the images themselves) in a MySQL database and use the database/sql package. This will allow us to quickly and efficiently query images for displaying on various pages.

There’s a lot to cover in this chapter. We’ll learn about the database/sql package for dealing with SQL databases, using the http pack...


Cover of Level Up Your Web Apps With Go


here’s some text