Documentation ¶
Index ¶
- Constants
- Variables
- func ConvertAxisToRowCol(axis string) (int, int, error)
- func ConvertColToString(col int) (string, error)
- func ConvertRowColToAxis(row, col int) (string, error)
- func ConvertRowToString(row int) (string, error)
- func NewFileWithPath(path string, opts ...excelize.Options) (*excelize.File, error)
- func OpenFile(path string, opts ...excelize.Options) (*excelize.File, error)
Constants ¶
View Source
const ( // MaxRow row的取值范围: [0, 1048575] MaxRow = 1048575 // MaxCol col的取值范围: [0, 16383] MaxCol = 16383 )
Variables ¶
View Source
var NewFile func(opts ...excelize.Options) *excelize.File = excelize.NewFile
NewFile
PS: 返回的 *excelize.File实例,不再使用时应当调用 File.Close().
View Source
var OpenReader func(r io.Reader, opts ...excelize.Options) (*excelize.File, error) = excelize.OpenReader
OpenReader 打开数据流.
PS: 可能会返回 excelize.ErrWorkbookFileFormat,原因: 文件格式不支持(比如.xls文件).
@params r 数据流(包括: 远程文件)
Functions ¶
func ConvertRowToString ¶
func NewFileWithPath ¶ added in v2.8.141
NewFileWithPath 新建1个空白的Excel文件(其内只有1个空白的工作表,表名为"Sheet1")
PS: 返回的 *excelize.File实例,不再使用时应当调用 File.Close().
@param path 文件的路径(如果文件已经存在,会覆盖它)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.