package main
import (
"fmt"
"github.com/enriquebris/xlsreader"
)
func main() {
reader, err := xlsreader.NewExcelizeReader("myExcelFile.xlsx")
if err != nil {
fmt.Println(err)
return
}
defer reader.Close()
// read all columns for sheet Furniture
if err = reader.ReadColumns("Furniture", 6); err != nil {
fmt.Println(err)
return
}
// print value for productId column, row 10 (Furniture sheet)
fmt.Println(reader.GetValue("Furniture", "productId", 10))
}
-
Notifications
You must be signed in to change notification settings - Fork 0
enriquebris/xlsreader
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
golang XLS reader