Add NumSheets to get the number of sheets

This commit is contained in:
Liu Ming
2016-01-21 13:14:37 +08:00
parent 1dd2ce626e
commit 1375b24d9d
3 changed files with 20 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ type WorkSheet struct {
Rows map[uint16]*Row
//NOTICE: this is the max row number of the sheet, so it should be count -1
MaxRow uint16
parsed bool
}
func (w *WorkSheet) parse(buf io.ReadSeeker) {
@@ -39,6 +40,7 @@ func (w *WorkSheet) parse(buf io.ReadSeeker) {
break
}
}
w.parsed = true
}
func (w *WorkSheet) parseBof(buf io.ReadSeeker, b *bof, pre *bof) *bof {