sheets

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(ctx context.Context, spreadsheet string, argOpts ...Option) (map[string][]any, []string, error)

Types

type Error

type Error struct {
	Kind ErrorKind
	Err  error
}

func (*Error) Error

func (e *Error) Error() string

func (*Error) Unwrap

func (e *Error) Unwrap() error

type ErrorKind

type ErrorKind string
const (
	ErrAPIDisabled  ErrorKind = "api_disabled"
	ErrQuotaProject ErrorKind = "quota_project_missing"
	ErrUnauthorized ErrorKind = "unauthorized"
	ErrUnknown      ErrorKind = "unknown"
)

type Option

type Option func(*options)

func WithRange

func WithRange(rangeA1 string) Option

func WithSheetsURL

func WithSheetsURL() Option

type SheetsSource

type SheetsSource struct {
	// contains filtered or unexported fields
}

SheetsSource implements a tabular data source backed by Google Sheets.

func NewSheetsSource

func NewSheetsSource(ctx context.Context, spreadsheet string, argOpts ...Option) (*SheetsSource, error)

func (*SheetsSource) Read

func (s *SheetsSource) Read() ([]string, [][]string, error)

Jump to

Keyboard shortcuts

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