db

package
v0.0.0-...-0bf5dc2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateGoal

func CreateGoal(goalText string, repeat int) (int, error)

func DeleteGoal

func DeleteGoal(id int) error

func Init

func Init(dbPath string) error

func UpdateGoal

func UpdateGoal(id int, goalText string, repeat int) error

edit features of a goal

Types

type Goal

type Goal struct {
	Id     int
	Text   string
	Repeat int
}

func GetAllGoals

func GetAllGoals() ([]Goal, error)

Jump to

Keyboard shortcuts

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