internal

package
v0.0.0-...-7dd612a Latest Latest
Warning

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

Go to latest
Published: Feb 3, 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
	Log                *storage.Log
}

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) GetHabits

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

GetHabits returns the habits slice

func (*Harsh) GetLog

func (h *Harsh) GetLog() *storage.Log

GetLog returns the entries map

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