coordinates

package
v0.0.0-...-1be2e0f Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2016 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FILE = `coordinates.yaml`
)

Variables

This section is empty.

Functions

func List

func List() map[string]*Coordinate

func Load

func Load()

func Save

func Save()

Types

type Coordinate

type Coordinate struct {
	Latitude  float64 `json:"latitude"`
	Longitude float64 `json:"longitude"`
}

func Add

func Add(
	key string,
	latitude float64,
	longitude float64,
) *Coordinate

func Delete

func Delete(
	key string,
) *Coordinate

func Get

func Get(
	key string,
) *Coordinate

func Set

func Set(
	key string,
	accelerating bool,
) *Coordinate

Jump to

Keyboard shortcuts

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