sheets

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sheet

type Sheet interface {
	Rows() int
	Columns() int
	Value(row int, column int) interface{}
}

func LoadGoogleSheet

func LoadGoogleSheet(sheetId string, readRange string) (Sheet, error)

func NewMemSheet

func NewMemSheet(cells [][]interface{}) Sheet

type SheetParser

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

func NewSheetParser

func NewSheetParser(sheet Sheet, headerRows int) (*SheetParser, error)

func (*SheetParser) ColIdxForKeys

func (s *SheetParser) ColIdxForKeys(keys ...string) int

func (*SheetParser) ContentRows

func (s *SheetParser) ContentRows() int

func (*SheetParser) Float32At

func (s *SheetParser) Float32At(row int, keys ...string) float32

func (*SheetParser) Float64At

func (s *SheetParser) Float64At(row int, keys ...string) float64

func (*SheetParser) Int32At

func (s *SheetParser) Int32At(row int, keys ...string) int32

func (*SheetParser) Int64At

func (s *SheetParser) Int64At(row int, keys ...string) int64

func (*SheetParser) Sheet

func (s *SheetParser) Sheet() Sheet

func (*SheetParser) StringAt

func (s *SheetParser) StringAt(row int, keys ...string) string

func (*SheetParser) UInt32At

func (s *SheetParser) UInt32At(row int, keys ...string) uint32

func (*SheetParser) ValueAt

func (s *SheetParser) ValueAt(row int, keys ...string) interface{}

Jump to

Keyboard shortcuts

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