excel

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractNameFromCell added in v0.6.2

func ExtractNameFromCell(cell string, line int32) string

Types

type Book

type Book struct {
	Filename string

	WorkbookMeta *tableaupb.WorkbookMeta
	Sheets       []*Sheet
	// contains filtered or unexported fields
}

func NewBook

func NewBook(filename string, parser Parser) (*Book, error)

func (*Book) GetSheet added in v0.6.2

func (b *Book) GetSheet(sheetName string) *Sheet

type Parser added in v0.6.2

type Parser interface {
	Parse(protomsg proto.Message, sheet *Sheet, namerow, datarow int32, transpose bool) error
}

type RowCell

type RowCell struct {
	Col  int    // colum number
	Data string // cell data
}

type RowCells

type RowCells struct {
	Row int // row number
	// contains filtered or unexported fields
}

func NewRowCells

func NewRowCells(row int) *RowCells

func (*RowCells) Cell

func (r *RowCells) Cell(name string) *RowCell

func (*RowCells) CellDebugString

func (r *RowCells) CellDebugString(name string) string

func (*RowCells) GetCellCountWithPrefix

func (r *RowCells) GetCellCountWithPrefix(prefix string) int

func (*RowCells) SetCell

func (r *RowCells) SetCell(name string, col int, data string)

type Sheet

type Sheet struct {
	Name   string
	MaxRow int
	MaxCol int

	Rows [][]string

	Meta *tableaupb.SheetMeta
}

func (*Sheet) Cell

func (s *Sheet) Cell(row, col int) (string, error)

func (*Sheet) String

func (s *Sheet) String() string

Jump to

Keyboard shortcuts

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