Documentation ¶
Index ¶
Constants ¶
View Source
const ( CTRels = "application/vnd.openxmlformats-package.relationships+xml" CTXML = "application/xml" CTWorkbook = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" CTWorksheet = "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" )
Well known content types.
View Source
const ( RELOfficeDocument = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" RELWorksheet = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" )
View Source
const ( NSPackageCT = "http://schemas.openxmlformats.org/package/2006/content-types" NSPackageRels = "http://schemas.openxmlformats.org/package/2006/relationships" NSSpreadsheetML = "http://schemas.openxmlformats.org/spreadsheetml/2006/main" NSOfficeDocRels = "http://schemas.openxmlformats.org/officeDocument/2006/relationships" )
Well known XML-namespace names.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cell ¶
type Cell struct {
// contains filtered or unexported fields
}
A Cell in the worksheet.
func (*Cell) MarshalXML ¶
type Document ¶
type Document struct {
// contains filtered or unexported fields
}
A Document represents Excel's document package.
func NewDocument ¶
func NewDocument() *Document
NewDocument creates and initializes a new Excel document. It returns a document containing workbook and a single worksheet. This resambles the case of running Excel program and creating a new blank document. Saving this document produces a valid .xlsx file.
type Row ¶
type Row struct {
// contains filtered or unexported fields
}
A row inside Excel's worksheet.
func (*Row) MarshalXML ¶
type Workbook ¶
type Workbook struct {
// contains filtered or unexported fields
}
A workbook inside an Excel document.
func (*Workbook) AddWorksheet ¶
func (wkb *Workbook) AddWorksheet()
func (*Workbook) MarshalXML ¶
type Worksheet ¶
type Worksheet struct {
// contains filtered or unexported fields
}
A worksheet inside Excel's workbook.
func (*Worksheet) MarshalXML ¶
Click to show internal directories.
Click to hide internal directories.