iwark

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: MIT Imports: 10 Imported by: 0

README

Iwark

Troubleshooting

code:403, message: The caller does not have permission

The following error using a service account can be resolved by adding the service account email address to the Google Docs permissions via the web UI.

code:403, message: The caller does not have permission

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSheetIDRequired  = errors.New("sheet id is required")
	ErrSheetCannotBeNil = errors.New("sheet cannot be nil")
)

Functions

func ParseDataFromSheet

func ParseDataFromSheet(s *spreadsheet.Sheet, opts *ReadSpreadsheetOpts) ([]string, [][]string)

func ParseTableFromSheet

func ParseTableFromSheet(s *spreadsheet.Sheet, opts *ReadSpreadsheetOpts) (*table.Table, error)

func ParseTableFromSpreadsheet

func ParseTableFromSpreadsheet(ss spreadsheet.Spreadsheet, sheetIdx uint, opts *ReadSpreadsheetOpts) (*table.Table, error)

func ParseTableSetFromSpreadsheet added in v0.6.8

func ParseTableSetFromSpreadsheet(ss spreadsheet.Spreadsheet, opts *ReadSpreadsheetOpts) (*table.TableSet, error)

ParseTableSetFromSpreadsheet is used to parse a TableSet from a sheet. A constraint of this function is that `colsRowIndex` and `headerRowCount` are the same value for all sheets.

func ReadSheetFromClient added in v0.6.7

func ReadSheetFromClient(client *http.Client, sheetID string, sheetIdx uint) (*spreadsheet.Sheet, error)

func ReadSheetFromCredentialsSetFile added in v0.6.7

func ReadSheetFromCredentialsSetFile(ctx context.Context, credsFile, credsKey string, sheetID string, sheetIdx uint) (*spreadsheet.Sheet, error)

func ReadSpreadsheetFromClient added in v0.6.7

func ReadSpreadsheetFromClient(client *http.Client, sheetID string) (*spreadsheet.Spreadsheet, error)

func ReadTableFromClient added in v0.6.7

func ReadTableFromClient(client *http.Client, sheetID string, sheetIdx uint, opts *ReadSpreadsheetOpts) (*table.Table, error)

func ReadTableFromCredentials added in v0.6.7

func ReadTableFromCredentials(ctx context.Context, creds goauth.Credentials, sheetID string, sheetIdx uint, opts *ReadSpreadsheetOpts) (*table.Table, error)

func ReadTableFromCredentialsSet added in v0.6.7

func ReadTableFromCredentialsSet(ctx context.Context, credsSet *goauth.CredentialsSet, credsKey string, sheetID string, sheetIdx uint, opts *ReadSpreadsheetOpts) (*table.Table, error)

func ReadTableFromCredentialsSetFile added in v0.6.7

func ReadTableFromCredentialsSetFile(ctx context.Context, credsFile, credsKey string, sheetID string, sheetIdx uint, opts *ReadSpreadsheetOpts) (*table.Table, error)

func SheetUpdateMulti added in v0.6.8

func SheetUpdateMulti(sheet *spreadsheet.Sheet, cells []Cell, sync bool) error

SheetUpdateMulti is a convenience function that wraps `spreadsheet.Sheet.Update()` and `spreadsheet.Sheet.Synchronize()`.

Types

type Cell added in v0.6.8

type Cell spreadsheet.Cell

func (Cell) ColumnInt added in v0.6.8

func (c Cell) ColumnInt() (int, error)

func (Cell) ColumnRowInts added in v0.6.8

func (c Cell) ColumnRowInts() (col, row int, err error)

func (Cell) RowInt added in v0.6.8

func (c Cell) RowInt() (int, error)

type Cells added in v0.6.8

type Cells []Cell

func (Cells) Values added in v0.6.8

func (cs Cells) Values() []string

type ReadSpreadsheetOpts added in v0.6.8

type ReadSpreadsheetOpts struct {
	InclHidden           bool
	SheetColumnsRowIndex int
	SheetHeaderRowCount  uint32
	SheetSkipBody        bool
}

func DefaultReadSheetOpts added in v0.6.8

func DefaultReadSheetOpts() *ReadSpreadsheetOpts

type Sheet added in v0.6.8

type Sheet spreadsheet.Sheet

Jump to

Keyboard shortcuts

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