Documentation ¶
Index ¶
- Constants
- Variables
- func RunCli()
- type Habit
- type Store
- func (s *Store) Add(name string)
- func (s *Store) AllHabits() []Habit
- func (s *Store) Break(habit Habit, time time.Time)
- func (s *Store) Done(habit Habit, time time.Time)
- func (s *Store) GetHabit(name string) (Habit, bool)
- func (s *Store) PerformHabit(h *Habit, days int, time time.Time)
- func (s Store) Print(massage string, params ...interface{})
- func (s *Store) UpdateYesterday(habit Habit, time time.Time)
Constants ¶
View Source
const DBFile = "./data.db"
Variables ¶
View Source
var Now = time.Now
Now passes the current system time
Functions ¶
Types ¶
type Store ¶
Store is a struct of all Store properties
func FromSQLite ¶
FromSQLite is checking for scheme to prepare it, if it doesn't exist and returns a store with connection
func (*Store) PerformHabit ¶
PerformHabit makes a dissection based on days between current time and last checked date
Click to show internal directories.
Click to hide internal directories.