sheetsclient

package
v0.0.0-...-b934a5f Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractYearFromTitle

func ExtractYearFromTitle(input string) string

func IsNumeric

func IsNumeric(value string) bool

Types

type SheetsClient

type SheetsClient struct {
	Service *sheets.Service

	RequestTimeout time.Duration
	// contains filtered or unexported fields
}

func New

func New(requestTimeout time.Duration) (*SheetsClient, error)

func (*SheetsClient) GetFieldnamesFromSpreadsheet

func (client *SheetsClient) GetFieldnamesFromSpreadsheet(
	spreadsheet *sheets.Spreadsheet) (map[string]bool, error)

getFieldnamesFromSpreadsheet parses all existing column (field) names from every sheet in a specified spreadsheet

func (*SheetsClient) GetSpreadsheetByID

func (client *SheetsClient) GetSpreadsheetByID(spreadsheetID string) (*sheets.Spreadsheet, error)

func (*SheetsClient) GetSpreadsheetByYear

func (client *SheetsClient) GetSpreadsheetByYear(year string) (*sheets.Spreadsheet, error)

Jump to

Keyboard shortcuts

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