here is the xlsx data file FYI this fails on both mac and ubuntu with 1.9
On Friday, August 25, 2017 at 3:10:40 PM UTC-7, G Shields wrote:
>
> Under 1.8.3 the program run:
> package main
>
> import (
> "fmt"
> "os"
> "strconv"
>
> "github.com/Luxurioust/excelize"
> )
>
> func checkErr(err error) {
> if err != nil {
> fmt.Println(err)
> os.Exit(1)
> }
>
> }
> func main() {
>
> xlsx, err := excelize.OpenFile("test.xlsx")
> checkErr(err)
> mysheet := xlsx.GetSheetName(1)
> index := xlsx.GetSheetIndex(mysheet)
> rows := xlsx.GetRows("Sheet" + strconv.Itoa(index))
> for _, row := range rows {
> for _, colCell := range row {
> fmt.Print(colCell, "\t")
> }
> fmt.Println()
> }
> }
>
> With results of:
> na Apple Orange Pear
> Small 2 3 3
> Normal 5 2 4
> Large 6 7 8
> Success: process exited with code 0.
>
> Under 1.9 I get no data and no errors:
> Success: process exited with code 0.
>
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
test.xlsx
Description: MS-Excel 2007 spreadsheet
