internal

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: MIT Imports: 5 Imported by: 0

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

func (h *Harsh) GetCountBack() int

GetCountBack returns the count back value for graph length

func (*Harsh) GetEntries

func (h *Harsh) GetEntries() *storage.Entries

GetEntries returns the entries map

func (*Harsh) GetHabits

func (h *Harsh) GetHabits() []*storage.Habit

GetHabits returns the habits slice

func (*Harsh) GetMaxHabitNameLength

func (h *Harsh) GetMaxHabitNameLength() int

GetMaxHabitNameLength returns the maximum habit name length for formatting

func (*Harsh) GetRepository

func (h *Harsh) GetRepository() storage.Repository

GetRepository returns the repository instance

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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