Documentation
¶
Index ¶
Constants ¶
View Source
const ( PomoDir = "~/.pomo" PomoConfig = "config.toml" Template = "config.template.toml" )
Variables ¶
View Source
var DefaultPath = fmt.Sprintf("%s/%s", PomoDir, PomoConfig)
Functions ¶
func ExpandPath ¶
Types ¶
type Config ¶
type Config struct { Database Database `toml:"database"` Timers TimerConfig `toml:"timers"` }
type TimerConfig ¶
type TimerConfig struct { Focus string `toml:"focus"` Short string `toml:"short"` Long string `toml:"long"` Interval int `toml:"interval"` }
func (*TimerConfig) FocusDuration ¶
func (tc *TimerConfig) FocusDuration() time.Duration
func (*TimerConfig) LongBreakDuration ¶
func (tc *TimerConfig) LongBreakDuration() time.Duration
func (*TimerConfig) ShortBreakDuration ¶
func (tc *TimerConfig) ShortBreakDuration() time.Duration
Click to show internal directories.
Click to hide internal directories.