Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Harsh ¶
type Harsh struct {
Repository storage.Repository
Habits []*storage.Habit
MaxHabitNameLength int
CountBack int
Entries *storage.Entries
}
Harsh is the main application struct containing all habit data and configuration
func NewHarsh ¶
func NewHarsh() *Harsh
NewHarsh creates a new Harsh instance with loaded configuration and data
func (*Harsh) GetCountBack ¶
GetCountBack returns the count back value for graph length
func (*Harsh) GetEntries ¶
GetEntries returns the entries map
func (*Harsh) GetMaxHabitNameLength ¶
GetMaxHabitNameLength returns the maximum habit name length for formatting
func (*Harsh) GetRepository ¶
func (h *Harsh) GetRepository() storage.Repository
GetRepository returns the repository instance
Click to show internal directories.
Click to hide internal directories.