// Package ods provides a lightweight ODS (OpenDocument Spreadsheet) writer and reader. // ODS files are ZIP archives containing XML files conforming to the // OpenDocument Format (ODF) 1.2 specification (ISO/IEC 26300). package ods // CellType represents the data type of a cell. type CellType int const ( CellString CellType = iota CellFloat CellCurrency CellDate CellFormula CellEmpty ) // Sheet represents a named sheet within an ODS workbook. type Sheet struct { Name string Columns []Column Rows []Row } // Column defines column properties. type Column struct { Width string // e.g., "2.5cm", "80pt" Hidden bool } // Row represents a single row. type Row struct { Cells []Cell IsBlank bool // preserve blank separator rows } // Cell represents a single cell value. type Cell struct { Value string // display/string value Type CellType // data type Formula string // ODS formula, e.g., "of:=[.G3]*[.H3]" } // Workbook is the top-level container passed to Write. type Workbook struct { Sheets []Sheet Meta map[string]string // custom metadata key-value pairs }