https://github.com/multiprocessio/go-openoffice
Go library for reading OpenOffice odf and ods files
https://github.com/multiprocessio/go-openoffice
golang openoffice
Last synced: 12 months ago
JSON representation
Go library for reading OpenOffice odf and ods files
- Host: GitHub
- URL: https://github.com/multiprocessio/go-openoffice
- Owner: multiprocessio
- License: mit
- Created: 2022-01-10T21:37:26.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-10T23:27:27.000Z (over 4 years ago)
- Last Synced: 2024-06-21T19:52:33.260Z (about 2 years ago)
- Topics: golang, openoffice
- Language: Go
- Homepage:
- Size: 25.4 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# go-openoffice
A Go library for reading OpenOffice/LibreOffice .ods (and .odf) files.
## Example
```go
$ cat ./examples/dump/main.go
package main
import "fmt"
import "strings"
import "github.com/multiprocessio/go-openoffice"
func main() {
f, err := openoffice.OpenODS("testdata/test.ods")
if err != nil {
panic(err)
}
doc, err := f.ParseContent()
if err != nil {
panic(err)
}
for _, t := range doc.Sheets {
fmt.Printf("Sheet Name: %s, Rows: %d\n", t.Name, len(t.Rows))
for _, row := range t.Strings() {
fmt.Println(strings.Join(row, ","))
}
fmt.Println()
}
}
```
## Users
This library is used by:
* [DataStation](https://github.com/multiprocessio/datastation)
* [dsq](https://github.com/multiprocessio/dsq)
## History
This project is a fork of https://github.com/knieriem/odf.