Browse Source

File.ToSlice receiver names should be consistent

Nikolay Bystritskiy 8 years ago
parent
commit
390c3f656c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      file.go

+ 2 - 2
file.go

@@ -317,9 +317,9 @@ func (f *File) MarshallParts() (map[string]string, error) {
 //
 // Here, value would be set to the raw value of the cell A1 in the
 // first sheet in the XLSX file.
-func (file *File) ToSlice() (output [][][]string, err error) {
+func (f *File) ToSlice() (output [][][]string, err error) {
 	output = [][][]string{}
-	for _, sheet := range file.Sheets {
+	for _, sheet := range f.Sheets {
 		s := [][]string{}
 		for _, row := range sheet.Rows {
 			if row == nil {