xlsx

package
v0.10.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Xlsx

type Xlsx struct {
	File       *excelize.File
	SheetName  string
	SheetIndex int
	ColStart   int
	RowStart   int
	Cols       *excelize.Cols
	Rows       *excelize.Rows
}

Xlsx xlsx file

func Open

func Open(filename string) *Xlsx

Open 打开 Xlsx 文件

func (*Xlsx) Chunk

func (xlsx *Xlsx) Chunk(size int, axises []string, cb func(line int, data [][]interface{}))

Chunk 遍历数据

func (*Xlsx) Close

func (xlsx *Xlsx) Close() error

Close 关闭文件句柄

func (*Xlsx) Columns

func (xlsx *Xlsx) Columns() []from.Column

Columns 读取列

func (*Xlsx) Data

func (xlsx *Xlsx) Data(row int, size int, axises []string) [][]interface{}

Data 读取数据

func (*Xlsx) Inspect

func (xlsx *Xlsx) Inspect() from.Inspect

Inspect 基本信息

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL