已验证 提交 4e7d93a7 编写于 作者: xurime's avatar xurime

Resolve #377, avoid empty column in GetRows result

上级 eca66180
...@@ -54,7 +54,7 @@ func (f *File) GetRows(sheet string) ([][]string, error) { ...@@ -54,7 +54,7 @@ func (f *File) GetRows(sheet string) ([][]string, error) {
} }
rows := make([][]string, rowCount) rows := make([][]string, rowCount)
for i := range rows { for i := range rows {
rows[i] = make([]string, colCount+1) rows[i] = make([]string, colCount)
} }
var row int var row int
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册