Documentation
¶
Overview ¶
Package ole implements a pure-Go reader for OLE2 Compound Document files. OLE2 (also known as Compound Document File Format) is used by legacy Excel .xls files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrInvalidSignature = errors.New("ole: invalid OLE2 signature")
ErrInvalidSignature is returned when the OLE signature bytes are not correct.
var ErrStreamNotFound = errors.New("ole: stream not found")
ErrStreamNotFound is returned when the requested named stream is not found.
Functions ¶
func EncodeBIFF8 ¶
EncodeBIFF8 encodes XlsData as a BIFF8 byte stream.
func NewBytesReaderAt ¶
NewBytesReaderAt creates an io.ReaderAt backed by a byte slice.
func ParseCellRef ¶
ParseCellRef parses a cell reference like "A1" into 0-based row and col.
func SaveXlsFile ¶
SaveXlsFile writes XlsData to disk as a minimal XLS (BIFF8) file.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader reads an OLE2 compound document.
type XlsData ¶
XlsData represents the decoded structure of an XLS file.
func LoadXlsFile ¶
LoadXlsFile loads and decodes an XLS file from disk.
func LoadXlsReader ¶
LoadXlsReader loads and decodes an XLS file from an io.Reader.