Преглед на файлове

Updated documentation on iter.Scan()

Staņislavs Koikovs преди 11 години
родител
ревизия
6da46330bf
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      session.go

+ 3 - 3
session.go

@@ -253,9 +253,9 @@ func (iter *Iter) Columns() []ColumnInfo {
 }
 
 // Scan consumes the next row of the iterator and copies the columns of the
-// current row into the values pointed at by dest. Scan might send additional
-// queries to the database to retrieve the next set of rows if paging was
-// enabled.
+// current row into the values pointed at by dest. Use nil as a dest value
+// to skip the corresponding column. Scan might send additional queries
+// to the database to retrieve the next set of rows if paging was enabled.
 //
 // Scan returns true if the row was successfully unmarshaled or false if the
 // end of the result set was reached or if an error occurred. Close should