Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotMSExcel = fmt.Errorf("not Microsoft Excel")
View Source
var ErrSheetNotAvailable = fmt.Errorf("sheet not available")
Functions ¶
This section is empty.
Types ¶
type OpenXML ¶
type OpenXML struct {
// contains filtered or unexported fields
}
OpenXML defines an Excel Open XML file.
func New ¶
New takes filename as the location of an Excel Open XML file and tries to open it. This will fail for any other Open XML files and return error ErrNotMSExcel. The caller must call OpenXML.Close() when reader is no longer needed.
func NewWithReader ¶
NewWithReader opens the Excel Open XML file for reading using an io.Reader. The size argument is the size of the ZIP-file.
func (*OpenXML) Close ¶
Close the reader. This must be called when reader is no longer needed. When ox was created using an io.Reader, Close does not do anything.
type Relationship ¶
type Relationships ¶
type Relationships struct { XMLName xml.Name `xml:"Relationships"` Relationships []*Relationship `xml:"Relationship"` }
func (*Relationships) GetID ¶
func (rels *Relationships) GetID(id string) *Relationship
Click to show internal directories.
Click to hide internal directories.