Documentation ¶
Overview ¶
XLSX文件操作工具包。
Index ¶
- type Cell
- func (self *Cell) Bool() (bool, error)
- func (self *Cell) Clear()
- func (self *Cell) Float() (float64, error)
- func (self *Cell) Int() (int, error)
- func (self *Cell) IsBlank() bool
- func (self *Cell) Link() string
- func (self *Cell) SetBool(value bool)
- func (self *Cell) SetFloat(value float64)
- func (self *Cell) SetInt(value int)
- func (self *Cell) SetLink(value string)
- func (self *Cell) SetString(value string)
- func (self *Cell) SetStyle(style Style)
- func (self *Cell) SetTime(value time.Time)
- func (self *Cell) String() string
- func (self *Cell) Style() Style
- func (self *Cell) Time() (time.Time, error)
- type Col
- type File
- func (self *File) AddSheet(name string) *Sheet
- func (self *File) Close() error
- func (self *File) DeleteSheet(idx int)
- func (self *File) DeleteSheetByName(name string)
- func (self *File) Save(target interface{}) error
- func (self *File) Sheet(idx int) *Sheet
- func (self *File) SheetByName(name string) *Sheet
- func (self *File) Sheets() *stream.Stream
- type Range
- type Row
- type Sheet
- func (self *Sheet) Cell(cidx, ridx int) *Cell
- func (self *Sheet) CellByRef(ref string) *Cell
- func (self *Sheet) Clear()
- func (self *Sheet) Cols() *stream.Stream
- func (self *Sheet) DeleteCol(idx int)
- func (self *Sheet) DeleteRow(idx int)
- func (self *Sheet) InsertCol(idx int) *Col
- func (self *Sheet) InsertRow(idx int) *Row
- func (self *Sheet) IsBlank() bool
- func (self *Sheet) Name() string
- func (self *Sheet) Range(fromCol, fromRow, toCol, toRow int) *Range
- func (self *Sheet) RangeByRef(ref string) *Range
- func (self *Sheet) Rows() *stream.Stream
- func (self *Sheet) SetActive()
- func (self *Sheet) SetName(name string)
- func (self *Sheet) SetVisible(value bool)
- type Style
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶ added in v1.0.0
type File struct {
// contains filtered or unexported fields
}
XLSX文件。
func (*File) DeleteSheetByName ¶ added in v1.0.1
根据工作表名删除工作表。
func (*File) SheetByName ¶ added in v1.0.0
根据工作表名获取工作表。
Click to show internal directories.
Click to hide internal directories.