Documentation ¶
Index ¶
- func ClearRange(srv *sheets.Service, spec *DataSpec) error
- func ClearWorksheet(srv *sheets.Service, spec *DataSpec, protect bool, force bool) error
- func DeleteAlias(name string) error
- func FormatValues(v *sheets.ValueRange, f DataFormat) string
- func GetAllAliases() map[string]*DataSpec
- func GetClient(secretfile string, tokfile string) *http.Client
- func GetService() (*sheets.Service, error)
- func PrintValues(v *sheets.ValueRange, f DataFormat)
- func ScanValues(r *bufio.Reader, f DataFormat) ([][]string, error)
- func SetAlias(name string, spec *DataSpec) error
- func SetupTempConfig(t *testing.T, cfname string)
- func WriteDataToRange(srv *sheets.Service, spec *DataSpec, data [][]string) error
- func WriteDataToWorksheet(srv *sheets.Service, spec *DataSpec, data [][]string, protect bool, force bool) error
- type DataFormat
- type DataFormatValue
- type DataRange
- type DataSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearRange ¶
func ClearWorksheet ¶
func DeleteAlias ¶
func FormatValues ¶
func FormatValues(v *sheets.ValueRange, f DataFormat) string
func GetAllAliases ¶
func GetService ¶
func GetService() (*sheets.Service, error)
func PrintValues ¶
func PrintValues(v *sheets.ValueRange, f DataFormat)
func ScanValues ¶
func ScanValues(r *bufio.Reader, f DataFormat) ([][]string, error)
func SetupTempConfig ¶
func WriteDataToRange ¶
Types ¶
type DataFormat ¶
type DataFormat string
const ( CsvFormat DataFormat = "csv" TsvFormat DataFormat = "tsv" )
func (*DataFormat) Separator ¶
func (f *DataFormat) Separator() string
func (*DataFormat) Set ¶
func (f *DataFormat) Set(v string) error
func (*DataFormat) String ¶
func (f *DataFormat) String() string
func (*DataFormat) Type ¶
func (f *DataFormat) Type() string
type DataFormatValue ¶
type DataFormatValue interface { String() string Set(string) error Type() string Separator() string }
Implement an enum-a-like for the [input|output]-format flag
type DataSpec ¶
func ExpandArgsToDataSpec ¶
func (*DataSpec) GetInSheetDataSpec ¶
func (*DataSpec) IsWorkbook ¶
func (*DataSpec) IsWorksheet ¶
Click to show internal directories.
Click to hide internal directories.