add LICENSE and some annotation

This commit is contained in:
Liu Ming
2015-06-16 10:37:11 +08:00
parent d0179503de
commit 708f1d8f15
3 changed files with 206 additions and 2 deletions

View File

@@ -184,11 +184,13 @@ func (w *WorkBook) addSheet(sheet *boundsheet, buf io.ReadSeeker) {
w.Sheets = append(w.Sheets, &WorkSheet{bs: sheet, Name: name, wb: w})
}
//reading a sheet from the compress file to memory, you should call this before you try to get anything from sheet
func (w *WorkBook) PrepareSheet(sheet *WorkSheet) {
w.rs.Seek(int64(sheet.bs.Filepos), 0)
sheet.Parse(w.rs)
sheet.parse(w.rs)
}
//helper function to read all cells from file
func (w *WorkBook) ReadAllCells(max int) (res [][]string) {
res = make([][]string, 0)
for _, sheet := range w.Sheets {