Documentation ¶
Overview ¶
Package goxlsx accesses Excel 2007 (.xslx) for reading.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ExcelNulltime is signalling if a time field cannot be parsed ExcelNulltime time.Time )
Functions ¶
func DateFromString ¶ added in v1.0.1
DateFromString return value as time. If the time cannot be parsed, it returns ExcelNullTime.
Types ¶
type Spreadsheet ¶
type Spreadsheet struct {
// contains filtered or unexported fields
}
Spreadsheet represents the whole .xlsx file.
func OpenFile ¶
func OpenFile(path string) (*Spreadsheet, error)
OpenFile reads a file located at the given path and returns a spreadsheet object.
func (*Spreadsheet) GetWorksheet ¶
func (s *Spreadsheet) GetWorksheet(number int) (*Worksheet, error)
GetWorksheet returns the worksheet with the given number, starting at 0.
func (*Spreadsheet) NumWorksheets ¶
func (s *Spreadsheet) NumWorksheets() int
NumWorksheets returns the number of worksheets in a file.
type Worksheet ¶
type Worksheet struct { Name string MaxRow int MaxColumn int MinRow int MinColumn int // contains filtered or unexported fields }
Worksheet represents a single worksheet in an excel file. A worksheet is a rectangular area of cells, each cell can contain a value.
func (*Worksheet) Cell ¶
Cell returns the contents of cell at column, row, where 1,1 is the top left corner. The return value is always a string. The user is in charge to convert this value to a number, if necessary. Formulae are not returned.