func runTable(tbl *table.Table) { for { results, done, err := tbl.Next() if done { return } printTable(tbl) if err != nil { fmt.Println("Error", err) } if results != nil { printResults(tbl, results) } } }