some tests and initial json structure
This commit is contained in:
14
cmd/test/main.go
Normal file
14
cmd/test/main.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
xlsx "github.com/tealeg/xlsx/v3"
|
||||
)
|
||||
|
||||
func main() {
|
||||
xls, err := xlsx.OpenFile("../../test/gwb-rechner_5_0_4_vollbilanz.xlsx")
|
||||
fmt.Println("OpenFile err:", err)
|
||||
sl, err := xls.ToSlice()
|
||||
fmt.Printf("err: %v\n\n%#v", err, sl[1])
|
||||
}
|
||||
15
cmd/test2/main.go
Normal file
15
cmd/test2/main.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
excelize "github.com/360EntSecGroup-Skylar/excelize/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
xFile, err := excelize.OpenFile("../../test/gwb-rechner_5_0_4_vollbilanz.xlsx")
|
||||
fmt.Println("openFile err :", err)
|
||||
sheets := xFile.GetSheetMap()
|
||||
rows, _ := xFile.GetRows(sheets[4])
|
||||
fmt.Printf("%#v", rows)
|
||||
}
|
||||
Reference in New Issue
Block a user