Go wrapper (Win64 only) for commercial LibXL excel library.
Switch branches/tags
Nothing to show
Clone or download

README.md

goexcelwin

Go wrapper (Win64 only) for commercial LibXL excel library.

Installation

go get github.com/johmue/goexcelwin

Copy the libxl.dll for Win64 into a directory ./bin inside your project.

Simple example

// main.go
package main

import (
	"github.com/johmue/goexcelwin"
)

func main() {
	xb := goexcelwin.Book{}
	xb.CreateXLSX("./bin/libxl.dll")

	xb.SetKey("<License Name>", "<License Key>")

	xb.SetLocale("UTF-8")
	xb.SetRgbMode(1)

	xs := xb.AddSheet("Table1")

	xs.WriteStr(1, 1, "Hello!", nil)
	xs.WriteNum(1, 2, 100, nil)

	xb.Save("test.xlsx")
}