Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSpreadsheetID ¶
GetSpreadsheetID returns the Google Sheets spreadsheet ID for the given URL. If the URL is an invalid format, an error will be returned.
func GoogleSheetsService ¶
func PaleYellow ¶
Types ¶
type Cell ¶
func (*Cell) HyperlinkFormula ¶
type Spreadsheet ¶
type Spreadsheet struct {
// contains filtered or unexported fields
}
Spreadsheet represents a Google Spreadsheet, which can contain multiple sheets, each with structured information contained in cells. A Spreadsheet has a unique spreadsheetID value, which can be found in a Google Sheets URL. See https://developers.google.com/sheets/api/guides/concepts for more information.
func Create ¶
func Create(ctx context.Context, credentialsFile, tokenFile, title string, data map[string][]*Row) (*Spreadsheet, error)
Create creates a spreadsheet with the provided title and data.
func Open ¶
func Open(ctx context.Context, credentialsFile, tokenFile, id string) (*Spreadsheet, error)
Open opens an exist Spreadsheet.
func (*Spreadsheet) GetValues ¶
func (s *Spreadsheet) GetValues(ctx context.Context, readRange string) ([][]interface{}, error)
func (*Spreadsheet) ResizeColumns ¶
func (s *Spreadsheet) ResizeColumns(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.