Scan Scan standard lib database rows directly to structs or slices. For the most comprehensive and up-to-date docs see the Examples Multiple Rows db, err := sql.Open("sqlite3", "database.sqlite") rows, err := db.Query("SELECT * FROM persons") var persons []Person err := scan.Rows(&persons, rows) fm