package
module
Version:
v1.0.5
Opens a new window with list of versions in this module.
Published: Mar 11, 2024
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
excelParser
A minimalistic excel parser
Documentation
¶
type Cell struct {
R string `xml:"r,attr"`
T string `xml:"t,attr,omitempty"`
V string `xml:"v"`
}
type Col struct {
Min int `xml:"min,attr"`
Max int `xml:"max,attr"`
Width int `xml:"width,attr"`
Span string `xml:"span,attr"`
}
type Row struct {
R int `xml:"r,attr"`
Spans string `xml:"spans,attr"`
Cells []Cell `xml:"c"`
}
type SI struct {
T string `xml:"t"`
}
SI represents the shared string item.
type SharedStrings struct {
XMLName xml.Name `xml:"http://schemas.openxmlformats.org/spreadsheetml/2006/main sst"`
Count int `xml:"count,attr"`
UniqueCount int `xml:"uniqueCount,attr"`
SharedString []SI `xml:"si"`
}
SharedStrings represents the structure of the shared strings XML.
type Worksheet struct {
XMLName xml.Name `xml:"http://schemas.openxmlformats.org/spreadsheetml/2006/main worksheet"`
ColWidths []Col `xml:"cols>col"`
Rows []Row `xml:"sheetData>row"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.