فهرست منبع

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