db

package
v0.0.0-...-833fa3a Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPlace

func AddPlace(place Place) error

func DeletePlace

func DeletePlace(id int) error

func Init

func Init(path string) error

func UpdateLast

func UpdateLast(id int) error

Types

type Place

type Place struct {
	Id   int
	Name string
	Type string
	Last time.Time
}

TODO: Add point logic

func AllPlaces

func AllPlaces() []Place

Jump to

Keyboard shortcuts

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