googlesheet

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScopeURL   = "https://www.googleapis.com/auth/spreadsheets"
	StatusSkip = "Skipped"
)

Scope and Status of sheet line processing

View Source
const (
	DefaultSheetName = "Sheet1"
	DefaultColumns   = "" /* 185-byte string literal not displayed */
)

Default data of configuration

Variables

This section is empty.

Functions

func Process

func Process(configuration Configuration) ([]byte, error)

Process starts to parse data from hemnet and update to Excel

Types

type Configuration

type Configuration struct {
	GoogleCredentialPath string
	SpreadsheetID        string
	NoSkipHeader         int
	SheetName            string
	Columns              string
}

Configuration is config to process GoogleSheet updating

func (*Configuration) Default

func (c *Configuration) Default()

Default set default data of configuration if it doesn't set yet

func (Configuration) Validate

func (c Configuration) Validate() (bool, error)

Validate check invalid in configuration

Jump to

Keyboard shortcuts

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