https://github.com/johmue/goexcelwin
Go wrapper (Win64 only) for commercial LibXL excel library.
https://github.com/johmue/goexcelwin
excel go libxl windows wrapper
Last synced: 6 months ago
JSON representation
Go wrapper (Win64 only) for commercial LibXL excel library.
- Host: GitHub
- URL: https://github.com/johmue/goexcelwin
- Owner: johmue
- License: mit
- Created: 2018-02-12T21:54:02.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-08-27T18:34:39.000Z (almost 5 years ago)
- Last Synced: 2024-06-20T12:49:56.438Z (about 2 years ago)
- Topics: excel, go, libxl, windows, wrapper
- Language: Go
- Homepage:
- Size: 22.5 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# goexcelwin
Go wrapper (Win64 only) for commercial [LibXL](http://libxl.com/) excel library.
## Installation
```shell
go get -u github.com/johmue/goexcelwin
```
Copy the `libxl.dll` for Win64 into a directory `./bin` inside your project.
## Simple example
```go
// main.go
package main
import (
"github.com/johmue/goexcelwin"
)
func main() {
xb := goexcelwin.Book{}
xb.CreateXLSX("./bin/libxl.dll")
xb.SetKey("", "")
xb.SetLocale("UTF-8")
xb.SetRgbMode(1)
xs := xb.AddSheet("Table1", nil)
xs.WriteStr(1, 1, "Hello!", nil)
xs.WriteNum(1, 2, 100, nil)
xb.Save("test.xlsx")
}
```