Versions in this module Expand all Collapse all v0 v0.6.7 Sep 1, 2026 Changes in this version + func ValidateProps(props map[string]string) error + type MergeSnapshot struct + Col int + Cols int + Row int + Rows int type OpType + const OpMergeCells + const OpUnmergeCells type Sheet + Merges map[CellRef]Span type SheetSnapshot + Merges []MergeSnapshot + type Span struct + Cols int + Rows int v0.6.6 Jul 8, 2026 v0.6.5 Jul 7, 2026 Changes in this version + type Cell struct + Raw string + StyleId int + Value string + ValueType string + func (c Cell) IsEmpty() bool + func (c Cell) Kind() CellKind + type CellKind string + const KindFormula + const KindValue + type CellRef struct + Col int + Row int + type CellSnapshot struct + Col int + Raw string + Row int + StyleId int + Value string + ValueType string + type Document struct + func NewDocument(wb *Workbook) *Document + func NewDocumentAt(wb *Workbook, log []Op) *Document + func (d *Document) Head() int + func (d *Document) Log() []Op + func (d *Document) Submit(op Op) (int, error) + func (d *Document) Workbook() *Workbook + type Op struct + Axis string + BaseRev int + Col int + Count int + EndCol int + EndRow int + FrozenCols int + FrozenRows int + Index int + Name string + Props map[string]string + Raw *string + Row int + Sheet string + Size int + StyleId *int + ToIndex int + Type OpType + Value *string + ValueType *string + func Transform(in, applied Op) Op + func (o Op) Validate() error + type OpType string + const OpAddSheet + const OpClearRange + const OpDeleteCols + const OpDeleteRows + const OpDeleteSheet + const OpInsertCols + const OpInsertRows + const OpMoveSheet + const OpRenameSheet + const OpSetCell + const OpSetDimension + const OpSetFreeze + const OpSetStyle + type Sheet struct + Cells map[CellRef]Cell + ColWidths map[int]int + FrozenCols int + FrozenRows int + Id string + Name string + RowHeights map[int]int + func NewSheet(id, name string) *Sheet + func (s *Sheet) GetCell(ref CellRef) Cell + func (s *Sheet) SetCell(ref CellRef, c Cell) + type SheetSnapshot struct + Cells []CellSnapshot + ColWidths map[int]int + FrozenCols int + FrozenRows int + Id string + Name string + RowHeights map[int]int + type Style struct + Props map[string]string + type StylePool struct + IdToStyle map[int]Style + NextId int + func NewStylePool() *StylePool + func (p *StylePool) Get(id int) (Style, bool) + func (p *StylePool) Put(s Style) int + type Workbook struct + Sheets []*Sheet + Styles *StylePool + func NewWorkbook() *Workbook + func WorkbookFromSnapshot(snap WorkbookSnapshot) *Workbook + func (w *Workbook) AddSheet(id, name string) *Sheet + func (w *Workbook) Apply(op Op) error + func (w *Workbook) Clone() *Workbook + func (w *Workbook) SheetByID(id string) *Sheet + func (w *Workbook) Snapshot() WorkbookSnapshot + type WorkbookSnapshot struct + Sheets []SheetSnapshot + Styles *StylePool