Documentation ¶
Overview ¶
Package sheets provides simple utilities for use with the Google Sheets API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // Rate limiter for slowing down access to acceptable rate. // Prevents annoying "USER-100s quota limit error". Limiter = rate.NewLimiter(ratePerSecond, maxBurstRate) )
Functions ¶
func ColToAlpha ¶
ColToAlpha converts a column number into a column alpha code. Column numbers are zero based.
func RowCol ¶
RowCol converts a row and column number into a cell address. Row and column numbers are zero based. The cell address is for the "current" sheet.
func SheetRowCol ¶
SheetRowCol converts a sheet name and row and column numbers into a cell address. Row and column numbers are zero based.
Types ¶
type Headers ¶
type Headers struct {
// contains filtered or unexported fields
}
Headers collects result of parsing headers from first row of sheet.
func ParseHeaders ¶
ParseHeaders takes a row of cells containing headers and an optional list of required headers. Returns a Headers object containing the cell column alpha and number for each header. Also tracks the alpha of the furthest right non-empty column.