[go-nuts] Re: Golang 1.9 failing with excelize (simple case works under 1.8.3)

2017-08-31 Thread G Shields
All, Thanks for all the suggestions. I cleaned out everything with: go clean -r -i … installed go 1.9 and created a file new test file of: package main import ( "fmt" "os" "github.com/plandem/xlsx" ) func checkErr(err error) { if err != nil { fmt.Println(err) os.

[go-nuts] Re: Golang 1.9 failing with excelize (simple case works under 1.8.3)

2017-08-30 Thread silviucapota
This library https://github.com/plandem/xlsx that was advertised here a few days ago worked for me with your initial test.xlsx On Wednesday, 30 August 2017 18:42:19 UTC-4, G Shields wrote: > > Tried the trick with saving under LibreOffice and MS excel, and in both > cases the files created are d

[go-nuts] Re: Golang 1.9 failing with excelize (simple case works under 1.8.3)

2017-08-30 Thread G Shields
Tried the trick with saving under LibreOffice and MS excel, and in both cases the files created are different and both continue to fail. At this point 1.9 is not stable for me with XML. Enclosed are some more files (renamed for the application origin, but the same test.xlsx) Thanks On Friday,

Re: [go-nuts] Re: Golang 1.9 failing with excelize (simple case works under 1.8.3)

2017-08-28 Thread Sam Whited
On Mon, Aug 28, 2017, at 22:59, silviucap...@gmail.com wrote: > Interesting... For this portion of code: > > https://github.com/360EntSecGroup-Skylar/excelize/blob/master/rows.go#L76-L85 > > The xml decoder returns row and col token types for 1.8.3 but rushes > into > an EOF for 1.9 In Go 1.8

[go-nuts] Re: Golang 1.9 failing with excelize (simple case works under 1.8.3)

2017-08-28 Thread silviucapota
Interesting... For this portion of code: https://github.com/360EntSecGroup-Skylar/excelize/blob/master/rows.go#L76-L85 The xml decoder returns row and col token types for 1.8.3 but rushes into an EOF for 1.9 If the document gets re-saved with LibreOffice for example, it works, so it may be in

[go-nuts] Re: Golang 1.9 failing with excelize (simple case works under 1.8.3)

2017-08-28 Thread G Shields
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 chec

[go-nuts] Re: Golang 1.9 failing with excelize (simple case works under 1.8.3)

2017-08-26 Thread peterGo
I am unable to reproduce your issue: go1.8.3 na Apple Orange Pear Small 2 3 3 Normal 5 2 4 Large 6 7 8 go1.9 na Apple Orange Pear Small 2 3 3 Normal 5 2 4 Large 6 7 8

[go-nuts] Re: Golang 1.9 failing with excelize (simple case works under 1.8.3)

2017-08-26 Thread peterGo
In Go, always check for errors. For example, mysheet := xlsx.GetSheetName(1) https://godoc.org/github.com/360EntSecGroup-Skylar/excelize#File.GetSheetName func (*File) GetSheetName func (f *File) GetSheetName(index int) string GetSheetName provides function to get sheet name of XLSX by giv