habit

package
v0.0.0-...-9808391 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Code = Habit{
		Name:       "coding",
		Desc:       "in Go",
		Target:     5,
		TicksCount: 2,
	}
	Read = Habit{
		Name:       "reading",
		Desc:       "Jane Austen",
		Target:     5,
		TicksCount: 3,
	}
	Walk = Habit{
		Name:       "walk",
		Desc:       "in the forest",
		Target:     7,
		TicksCount: 3,
	}
	Clarinet = Habit{
		Name:       "play the clarinet",
		Desc:       "",
		Target:     7,
		TicksCount: 0,
	}
)

Functions

This section is empty.

Types

type Habit

type Habit struct {
	ID         string
	Name       string
	Desc       string
	Target     int
	TicksCount int
}

func (Habit) Description

func (t Habit) Description() string

func (Habit) FilterValue

func (t Habit) FilterValue() string

func (Habit) Title

func (t Habit) Title() string

Jump to

Keyboard shortcuts

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