Documentation
¶
Overview ¶
Package xlsx implements a basic xlsx library.
Index ¶
- func Register(charset string, decoder func(io.Reader) io.Reader)
- type Book
- type Cell
- func (a *Cell) Bool() bool
- func (a *Cell) Float() float64
- func (a *Cell) Int() int
- func (a *Cell) SetBool(v bool)
- func (a *Cell) SetFloat(v float64)
- func (a *Cell) SetInt(v int)
- func (a *Cell) SetString(v string)
- func (a *Cell) SetStyle(s string)
- func (a *Cell) SetTime(v time.Time)
- func (a *Cell) String() string
- func (a *Cell) Style() string
- func (a *Cell) Time() time.Time
- type Record
- type Records
- type Sheet
- func (a *Sheet) Cell(ref string) *Cell
- func (a *Sheet) DeleteCols(j int, n int)
- func (a *Sheet) DeleteRows(i int, m int)
- func (a *Sheet) Dim() (m int, n int)
- func (a *Sheet) ExtendCols(j int, n int, count int)
- func (a *Sheet) ExtendRows(i int, m int, count int)
- func (a *Sheet) GetRecords(head int, sep string, skip, drop int) *Records
- func (a *Sheet) ICell(i, j int) *Cell
- func (a *Sheet) IMerge(i, j int, m, n int)
- func (a *Sheet) Merge(ref string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Book ¶
type Book struct {
// contains filtered or unexported fields
}
Book represents a workbook.
func OpenReader ¶
OpenReader opens the workbook from reader.
func (*Book) SaveWriter ¶
SaveWriter saves workbook to writer.
func (*Book) SheetNames ¶ added in v0.1.3
SheetNames returns all sheet names.
type Record ¶ added in v0.2.0
type Record struct {
// contains filtered or unexported fields
}
Record represents a record.
type Records ¶ added in v0.2.0
type Records struct {
// contains filtered or unexported fields
}
Records represents a records.
type Sheet ¶
type Sheet struct {
// contains filtered or unexported fields
}
Sheet represents the worksheet.
func (*Sheet) DeleteCols ¶
DeleteCols deletes n cols from index j.
func (*Sheet) DeleteRows ¶
DeleteRows deletes m rows from index i.
func (*Sheet) ExtendCols ¶
ExtendCols extends n cols at index j.
func (*Sheet) ExtendRows ¶
ExtendRows extends m rows at index i.
func (*Sheet) GetRecords ¶ added in v0.2.1
GetRecords returns the records.
Click to show internal directories.
Click to hide internal directories.