googlesheets

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSheetIfNotExistant

func CreateSheetIfNotExistant(sheetService *sheets.SpreadsheetsService, spreadsheetId string) *sheets.Spreadsheet

func StructSliceValueRange

func StructSliceValueRange(s []interface{}, prepend string) *sheets.ValueRange

Only Works on flat struct ATM

func StructValueRange

func StructValueRange(s interface{}) *sheets.ValueRange

Only Works on flat struct ATM

Types

type Spreadsheet

type Spreadsheet struct {
	*sheets.Spreadsheet
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, credentials string) (*Spreadsheet, error)

func Open

func Open(spreadsheetId string, ctx context.Context, credentials string) (*Spreadsheet, error)

func (*Spreadsheet) ClearSheet added in v0.0.9

func (s *Spreadsheet) ClearSheet(sheetId string) error

func (*Spreadsheet) WriteSheetFromStructSlice

func (s *Spreadsheet) WriteSheetFromStructSlice(data []interface{}, sheetId string, prepend string)

Jump to

Keyboard shortcuts

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