gphotos

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(ctx context.Context, opts ...option.ClientOption) (*photoslibrary.Service, error)

NewService creates a new Service.

This file contains NewService function which would be in newer generated code, but is missing in v0.3.2.

Types

type DateFlag

type DateFlag struct {
	flag.Value // interface

	photoslibrary.Date // value contained
	// contains filtered or unexported fields
}

DateFlag implements flag.Value so that a flag containing a time can be parsed.

Value validation beyond what's done by time.Parse is minimal.

Format is expected to be YYYY-MM-DD.

func (*DateFlag) IsSet

func (d *DateFlag) IsSet() bool

IsSet returns whether the flag has been set to a valid date.

func (*DateFlag) Set

func (d *DateFlag) Set(s string) error

Set satisfies the flag.Value interface and parses the string value of the flag using time.Parse with value 2006-01-02. Passing an empty string means the flag has not been set.

func (*DateFlag) String

func (d *DateFlag) String() string

String implements a stringer and returns either an empty string if the value is not set, or a string formatted as YYYY-MM-DD.

Jump to

Keyboard shortcuts

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