apps

package
v0.0.0-...-85f5b33 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Can't load Spreadsheet
	ErrBadUrl = errors.New("Bad Url")

	// ErrMovedPermanently is returned when a 301/302 is returned.
	ErrBadBody = errors.New("Bad Body")
)

Functions

This section is empty.

Types

type C

type C struct {
	V string `json:"v"`
}

type Col

type Col struct {
	Id    string `json:"id"`
	Label string `json:"label"`
	Type  string `json:"type"`
}

type Row

type Row struct {
	C []C `json:"c"`
}

type Sheet

type Sheet struct {
	Version string `json:"version"`
	ReqId   string `json:"reqId"`
	Status  string `json:"status"`
	Sig     string `json:"sig"`
	Table   Table  `json:"table"`
}

func GetSpreadsheet

func GetSpreadsheet(c context.Context, spreadsheetsID string, sheetID string) (*Sheet, error)

type Table

type Table struct {
	Cols []Col `json:"cols"`
	Rows []Row `json:"rows"`
}

Jump to

Keyboard shortcuts

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