Add Formula & Format support
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user