commute

package
v0.0.0-...-d1b8edc Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Post

func Post(ctx context.Context, client *strava.APIClient)

Types

type Commute

type Commute struct {
	Type     string
	Start    time.Time
	Distance unit.Length
	Speed    unit.Speed
}

Commute represents general attributes of a regular commute

func (Commute) Duration

func (c Commute) Duration() time.Duration

Duration computes the commute time given the distance and speed

func (Commute) Label

func (c Commute) Label() string

Label returns a Morning or Evening label

Jump to

Keyboard shortcuts

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