to_spreadsheet

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// https://developers.google.com/sheets/api/guides/concepts#spreadsheet_id
	SpreadsheetIdPattern = regexp.MustCompile(`^([a-zA-Z0-9-_]+)$`)

	ErrorInvalidSpreadsheetId = errors.New("invalid spreadsheet id")
)

Functions

func IsValidSpreadsheetId

func IsValidSpreadsheetId(id string) bool

Types

type Spreadsheet

type Spreadsheet struct {
	SpreadsheetId  string                 `json:"spreadsheetId,omitempty"`
	SpreadsheetUrl string                 `json:"spreadsheetUrl,omitempty"`
	Properties     *SpreadsheetProperties `json:"properties,omitempty"`
}

type SpreadsheetProperties

type SpreadsheetProperties struct {
	Title    string `json:"title,omitempty"`
	Locale   string `json:"locale,omitempty"`
	TimeZone string `json:"timeZone,omitempty"`
}

Jump to

Keyboard shortcuts

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