Documentation
¶
Index ¶
- func MakeFlatOds(spreadsheet Spreadsheet) string
- func MakeOds(spreadsheet Spreadsheet) *bytes.Buffer
- type AutomaticStyles
- type Body
- type Cell
- type CellData
- type CurrencyStyle
- type CurrencySymbol
- type DateStyle
- type FileEntry
- type FlatOds
- type Manifest
- type Map
- type NumberElement
- type NumberElementDateDay
- type NumberElementDateMonth
- type NumberElementDateYear
- type NumberFormat
- type NumberStyle
- type OfficeDocumentContent
- type OfficeDocumentStyles
- type Row
- type Spreadsheet
- type Style
- type StyleMap
- type Styles
- type Table
- type TextElement
- type TextProperties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeFlatOds ¶
func MakeFlatOds(spreadsheet Spreadsheet) string
func MakeOds ¶
func MakeOds(spreadsheet Spreadsheet) *bytes.Buffer
Types ¶
type AutomaticStyles ¶
type Body ¶
type Body struct { XMLName xml.Name `xml:"office:body"` Spreadsheet Spreadsheet `xml:"office:spreadsheet"` }
type Cell ¶
type Cell struct { XMLName xml.Name `xml:"table:table-cell"` Text string `xml:"text:p,omitempty"` ValueType string `xml:"office:value-type,attr,omitempty"` CalcExtType string `xml:"calcext:value-type,attr,omitempty"` Value string `xml:"office:value,attr,omitempty"` DateValue string `xml:"office:date-value,attr,omitempty"` TimeValue string `xml:"office:time-value,attr,omitempty"` Currency string `xml:"office:currency,attr,omitempty"` StyleName string `xml:"table:style-name,attr,omitempty"` Formula string `xml:"table:formula,attr,omitempty"` }
type CurrencyStyle ¶
type CurrencyStyle struct { XMLName xml.Name `xml:"number:currency-style"` Name string `xml:"style:name,attr"` Volatile string `xml:"style:volatile,attr,omitempty"` Language string `xml:"number:language,attr"` Country string `xml:"number:country,attr"` Number NumberFormat `xml:"number:number"` Texts []TextElement `xml:"number:text"` CurrencySymbol CurrencySymbol `xml:"number:currency-symbol"` TextProperties *TextProperties `xml:"style:text-properties,omitempty"` StyleMap *StyleMap `xml:"style:map,omitempty"` }
type CurrencySymbol ¶
type FlatOds ¶
type FlatOds struct { XMLName xml.Name `xml:"office:document"` XMLNSOffice string `xml:"xmlns:office,attr"` XMLNSTable string `xml:"xmlns:table,attr"` XMLNSText string `xml:"xmlns:text,attr"` XMLNSStyle string `xml:"xmlns:style,attr"` XMLNSFo string `xml:"xmlns:fo,attr"` XMLNSNumber string `xml:"xmlns:number,attr"` XMLNSCalcext string `xml:"xmlns:calcext,attr"` OfficeVersion string `xml:"office:version,attr"` OfficeMimetype string `xml:"office:mimetype,attr"` AutomaticStyles AutomaticStyles `xml:"office:automatic-styles"` Body Body `xml:"office:body"` }
type NumberElement ¶
type NumberElement struct { XMLName xml.Name `xml:"number:number"` DecimalPlaces string `xml:"number:decimal-places,attr"` MinDecimalPlaces string `xml:"number:min-decimal-places,attr"` MinIntegerDigits string `xml:"number:min-integer-digits,attr"` Grouping string `xml:"number:grouping,attr"` Language string Country string }
type NumberElementDateDay ¶
type NumberElementDateMonth ¶
type NumberElementDateYear ¶
type NumberFormat ¶
type NumberStyle ¶
type NumberStyle struct { XMLName xml.Name `xml:"number:number-style"` Name string `xml:"style:name,attr"` Volatile string `xml:"style:volatile,attr,omitempty"` Language string `xml:"number:language,attr,omitempty"` Country string `xml:"number:country,attr,omitempty"` TextProperties *TextProperties `xml:"style:text-properties,omitempty"` NumberElements []NumberElement `xml:",any"` Map *Map `xml:"style:map,omitempty"` }
type OfficeDocumentContent ¶
type OfficeDocumentContent struct { XMLName xml.Name `xml:"office:document"` XMLNSOffice string `xml:"xmlns:office,attr"` XMLNSTable string `xml:"xmlns:table,attr"` XMLNSText string `xml:"xmlns:text,attr"` XMLNSStyle string `xml:"xmlns:style,attr"` XMLNSFo string `xml:"xmlns:fo,attr"` XMLNSNumber string `xml:"xmlns:number,attr"` XMLNSCalcext string `xml:"xmlns:calcext,attr"` OfficeVersion string `xml:"office:version,attr"` OfficeMimetype string `xml:"office:mimetype,attr"` AutomaticStyles AutomaticStyles `xml:"office:automatic-styles"` Body Body `xml:"office:body"` }
type OfficeDocumentStyles ¶
type OfficeDocumentStyles struct { XMLName xml.Name `xml:"office:document-styles"` XMLNSOffice string `xml:"xmlns:office,attr"` XMLNSTable string `xml:"xmlns:table,attr"` XMLNSText string `xml:"xmlns:text,attr"` XMLNSStyle string `xml:"xmlns:style,attr"` XMLNSFo string `xml:"xmlns:fo,attr"` XMLNSNumber string `xml:"xmlns:number,attr"` XMLNSSvg string `xml:"xmlns:svg,attr"` XMLNSCalcext string `xml:"xmlns:calcext,attr"` OfficeVersion string `xml:"office:version,attr"` AutomaticStyles AutomaticStyles `xml:"office:automatic-styles"` }
type Spreadsheet ¶
type Spreadsheet struct { XMLName xml.Name `xml:"office:spreadsheet"` Tables []Table `xml:"table:table"` }
func MakeSpreadsheet ¶
func MakeSpreadsheet(cells [][]Cell) Spreadsheet
type TextElement ¶
type TextElement struct {
Content string `xml:",chardata"`
}
type TextProperties ¶
Click to show internal directories.
Click to hide internal directories.