-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Question: How to get all cells & rows? #16
Comments
@jordyvandomselaar Thanks for your issue. You can use rows, err := f.GetRows("Sheet1")
if err != nil {
fmt.Println(err)
return
}
for _, row := range rows {
for _, colCell := range row {
fmt.Print(colCell, "\t")
}
fmt.Println()
} The full API docs can be seen on go.dev. If you have any questions or concerns, please let me know by replying to this issue. |
Hmm, kept returning an empty slice. |
@jordyvandomselaar Verify that the given sheet index is valid or attach your code and .xlsx file if possible. |
I ended up using another lib, but I ran the functions to get the active sheet name which I used in |
As the title says, how to get all rows and their cells? I don't know beforehand how many rows or cells there'll be.
The text was updated successfully, but these errors were encountered: