gexcel

package
v0.0.0-...-f3abbe6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cell

type Cell struct {
	// contains filtered or unexported fields
}

type Col

type Col struct {
	// contains filtered or unexported fields
}

type MemDoc

type MemDoc struct {
	Sheets map[uint32]*MemSheet
}

func NewEmptyMemDoc

func NewEmptyMemDoc() *MemDoc

func (*MemDoc) GetCell

func (d *MemDoc) GetCell(sheetIdx, rowIdx, colIdx uint32) string

func (*MemDoc) GetCollCount

func (d *MemDoc) GetCollCount(sheetIdx uint32) uint32

func (*MemDoc) GetRowCount

func (d *MemDoc) GetRowCount(sheetIdx uint32) uint32

func (*MemDoc) GetSheetCount

func (d *MemDoc) GetSheetCount() uint32

func (*MemDoc) GetSheetName

func (d *MemDoc) GetSheetName(idx uint32) string

func (*MemDoc) SetCell

func (d *MemDoc) SetCell(sheetIdx, rowIdx, colIdx uint32, content string)

func (*MemDoc) SetSheet

func (d *MemDoc) SetSheet(sheetIdx uint32, name string)

func (*MemDoc) ToXlsx

func (d *MemDoc) ToXlsx() ([]byte, error)

type MemSheet

type MemSheet struct {
	Name    string
	Content map[string]string // map["RowId,CollId"}"CellContent"
}

type Row

type Row struct {
	// contains filtered or unexported fields
}

type XlsDoc

type XlsDoc struct {
	// contains filtered or unexported fields
}

func OpenBytes

func OpenBytes(b []byte) (*XlsDoc, error)

func OpenPath

func OpenPath(path string) (*XlsDoc, error)

func (*XlsDoc) CollCount

func (d *XlsDoc) CollCount(sheetIdx, rowIdx int) int

func (*XlsDoc) GetCell

func (d *XlsDoc) GetCell(sheetIdx, rowIdx, colIdx int) (string, bool)

func (*XlsDoc) RowCount

func (d *XlsDoc) RowCount(sheetIdx int) int

func (*XlsDoc) SheetCount

func (d *XlsDoc) SheetCount() int

func (*XlsDoc) SheetName

func (d *XlsDoc) SheetName(idx int) string

func (*XlsDoc) Sheets

func (d *XlsDoc) Sheets(idx int) *XlsSheet

func (*XlsDoc) ToMemDoc

func (d *XlsDoc) ToMemDoc(useFirstCollCount bool) *MemDoc

type XlsSheet

type XlsSheet struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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