Add Formula & Format support

This commit is contained in:
chen.s.g
2018-04-05 21:28:01 +08:00
parent d1d6f84447
commit 574bf55ec4
11 changed files with 786 additions and 222 deletions

View File

@@ -2,6 +2,7 @@ package xls
import (
"fmt"
"testing"
)
func ExampleOpen() {
@@ -35,3 +36,23 @@ func ExampleWorkBook_GetSheet() {
}
}
}
func BenchmarkGetSheet(b *testing.B) {
for i := 0; i < b.N; i++ {
if xlFile, err := Open("Table.xls", "utf-8"); err == nil {
for i := 0; i < xlFile.NumSheets(); i++ {
xlFile.GetSheet(i)
}
}
}
}
func BenchmarkGetSheetWithBuffer(b *testing.B) {
for i := 0; i < b.N; i++ {
if xlFile, err := OpenWithBuffer("Table.xls", "utf-8"); err == nil {
for i := 0; i < xlFile.NumSheets(); i++ {
xlFile.GetSheet(i)
}
}
}
}