Excel-XML reader for Go
go get github.com/speedata/goxlsx
package main
import (
"fmt"
"log"
"github.com/speedata/goxlsx"
)
func main() {
excelfile := "Worksheet1.xlsx"
spreadsheet, err := goxlsx.OpenFile(excelfile)
if err != nil {
log.Fatal(err)
}
ws1, err := spreadsheet.GetWorksheet(0)
if err != nil {
log.Fatal(err)
}
fmt.Println(ws1.Name)
fmt.Printf("Spreadsheet 0 (%s) starts at (%d,%d) and extends to (%d,%d)\n", ws1.Name, ws1.MinColumn, ws1.MinRow, ws1.MaxColumn, ws1.MaxRow)
fmt.Println(ws1.Cell(ws1.MinColumn, ws1.MinRow))
fmt.Println(ws1.Cell(3, 3))
}Status: usable
Maturity level: 5/5 (used in production, API will not change)
Supported/maintained: yes
Contribution welcome: yes (pull requests, issues)
Main page: https://github.com/speedata/goxlsx
License: MIT
Contact: [email protected]