Skip to content

Glossary: Go in Practice

Scan

Also written: rows.Scan

Copies a row's columns into the variables you point it at, such as `&p.SKU`. On a single-row query it returns `sql.ErrNoRows` when nothing matched.

Where the book teaches it

Related terms

db.QueryRowContextdb.QueryContext