xls

package
v0.0.0-...-8707e75 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDoc

func GetDoc(r io.Reader) (*xls.Workbook, error)

func GetValue

func GetValue(doc *xls.Workbook, path string) (s string, err error)

Types

type Unmarshaler

type Unmarshaler struct {
	base.DataLoader
}

xls格式excel反序列化; 支持的注释格式包括: xm:"excel:sheet[1:2]/row[1:30]/col[1]"; xm:"excel:sheet[1:2]/row[1:]/col[1]"; xm:"excel:sheet[1:2]/row[:30]/col[1]"; xm:"excel:sheet[1:2]/row[:]/col[1]"; 其中sheet、row和col下标从0开始; 下标缺省最小值为0,缺省最大值为999999 按sheet->row->col顺序嵌套循环读取数据; 默认遇到空行退出循环 data数据类型支持:*Obj *[]Obj *[]*Obj;

func (*Unmarshaler) Unmarshal

func (m *Unmarshaler) Unmarshal(r io.Reader, data interface{}) error

Jump to

Keyboard shortcuts

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