Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get multiple records #23

Closed
dlintw opened this issue Feb 17, 2017 · 1 comment
Closed

Can't get multiple records #23

dlintw opened this issue Feb 17, 2017 · 1 comment
Labels
bug Something isn't working

Comments

@dlintw
Copy link

dlintw commented Feb 17, 2017

By passing this test data
data.xlsx

The myread.go

package main
/*
Build: go build -o myread myread.go
run: ./my_read data.xlsx
*/
import (
	"fmt"
	"log"
	"os"

	"github.com/Luxurioust/excelize"
)

func main() {
	inF, err := excelize.OpenFile(os.Args[1])
	if err != nil {
		log.Fatalln(err)
	}

	sheet := inF.GetRows(inF.GetSheetName(1))
	for _, row := range sheet {
		fmt.Println(len(row), row)
	}
} 

expect get:
3 [日盤 12345 夜盤交易行情轉入]
3 [測 12346 行情轉入]

but get:
3 [測 12346 行情轉入]
3 [測 12346 行情轉入]

@xuri xuri added the bug Something isn't working label Feb 17, 2017
xuri added a commit that referenced this issue Feb 17, 2017
@xuri
Copy link
Member

xuri commented Feb 17, 2017

Thanks for your issue, I have fix it.

@xuri xuri closed this as completed Feb 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants