Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHabitsToDB ¶
Types ¶
type Config ¶
type Config struct {
Habits []HabitConfig `yaml:"habits"`
}
type HabitConfig ¶
type HabitConfig struct { Name string `yaml:"name"` Type string `yaml:"type"` Target int64 `yaml:"target"` TargetTime string `yaml:"target_time"` MaxTime string `yaml:"max_time"` TargetDuration string `yaml:"target_duration"` Points int64 `yaml:"points"` PointsMode string `yaml:"points_mode"` Unit string `yaml:"unit"` IntervalDays int64 `yaml:"interval_days"` Tasks []string `yaml:"tasks"` Options []string `yaml:"options"` Reminder struct { Time string `yaml:"time"` Days []string `yaml:"days"` } `yaml:"reminder"` }
Click to show internal directories.
Click to hide internal directories.