go123

module
v0.0.0-...-fc992ad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2023 License: MIT

README

go123 - Spreadsheet tooling

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL