ods

package module
v0.0.0-...-4248271 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: BSD-2-Clause Imports: 4 Imported by: 1

README

ods2csv

This is a Go package to read contents of a .ods (openoffice spreadsheet) file. Formula and value of a cell can be accessed. See example for usage.

Note: Merged cells are not support

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReplaceHTMLSpecialEntities

func ReplaceHTMLSpecialEntities(input string) string

Types

type Cell

type Cell struct {
	Type      string //Type float,string ...    ( office:value-type= )
	Value     string //Value                    ( office:value= )
	DateValue string //DateValue                ( office:date-value= )
	Formula   string //formula                  (table:formula= )
	Text      string //Text

}

type Odsfile

type Odsfile struct {
	Sheets []Sheet
}

func ReadODSFile

func ReadODSFile(odsfilename string) (Odsfile, error)

type Row

type Row struct {
	Cells []Cell
}

type Sheet

type Sheet struct {
	Name string
	Rows []Row
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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