gcal2diary

package module
v0.0.0-...-9d5b693 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTokenFromWeb

func NewTokenFromWeb(ctx context.Context, config *oauth2.Config) (*oauth2.Token, error)

Request a token from the web, then returns the retrieved token.

func SaveToken

func SaveToken(path string, token *oauth2.Token) (err error)

Saves a token to a file path.

func TokenFromFile

func TokenFromFile(file string) (*oauth2.Token, error)

Retrieves a token from a local file.

Types

type DateStyle

type DateStyle int
const (
	DateStyleISO DateStyle = iota
	DateStyleUS
	DateStyleEU
)

type DiaryWriter

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

func NewDiaryWriter

func NewDiaryWriter(w io.Writer, dateStyle DateStyle) *DiaryWriter

func (*DiaryWriter) Write

func (w *DiaryWriter) Write(event *calendar.Event) error

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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