Documentation
¶
Overview ¶
Package xlsx 主要实现了stream/file的接口
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInStream ¶
NewInStream 创建一个名为filename的xlsx输入流
func NewOutStream ¶
NewOutStream 创建一个名为filename的xlsx输出流
Types ¶
type Column ¶
type Column struct {
Index string `json:"index"` //列索引,A,B,C....AA.....
Type string `json:"type"` //类型 类型 bool bigInt decimal string time
Format string `json:"format"` //joda时间格式
// contains filtered or unexported fields
}
Column 列信息
type InConfig ¶
type InConfig struct {
Columns []Column `json:"column"` //列信息数组
Sheet string `json:"sheet"` //表格名
NullFormat string `json:"nullFormat"` //null文本
StartRow int `json:"startRow"` //开始读取行数,从第1行开始
}
InConfig 输入xlsx配置
type OutConfig ¶
type OutConfig struct {
Columns []Column `json:"column"` //列信息数组
Sheets []string `json:"sheets"` //表格名
NullFormat string `json:"nullFormat"` //null文本
HasHeader bool `json:"hasHeader"` // 是否有列头
Header []string `json:"header"` // 列头
SheetRow int `json:"sheetRow"` // sheet最大的行数
}
OutConfig 输出xlsx配置
type Rows ¶
type Rows struct {
*excelize.Rows
// contains filtered or unexported fields
}
Rows 行读取器
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
Stream xlsx文件流
Click to show internal directories.
Click to hide internal directories.