Copyright (c) 2023, Geert JM Vanderkelen
go123 is a package that provides tools for manipulating spreadsheets. Since
the most popular is Microsoft Excel, this is the first supported, but we
leave room for anything that comes. The author once bought
Borland's Quattro Pro, in a box, on floppy disks!
The name was inspired by Lotus 1-2-3.
Quick start
package main
import (
"errors"
"fmt"
"github.com/golistic/go123/excel"
)
func main() {
ex, err := excel.New("your.xlsx")
switch {
case errors.Is(err, excel.ErrNotMSExcel):
fmt.Println("this ain't going to work")
case err != nil:
fmt.Println(err.Error())
default:
sheets, _ := ex.Sheets()
for _, sheet := range sheets {
fmt.Println(sheet.Name)
}
}
}
License
Distributed under the MIT license. See LICENSE.md
for more information.