constants

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// TimestampLayout is the format string for use with time.Format() that outputs date + time
	TimestampLayout = `2006-01-02 15:04:05 PM`
	// TimestampDateLayout is the format string for use with time.Format() that outputs a date
	TimestampDateLayout = `2006-01-02`

	// UnicodeClock is the character that represents a running task
	UnicodeClock = "⌛"
	// UnicodeHeavyCheckmark is the character that represents no running tasks (idle)
	UnicodeHeavyCheckmark = "✔"
	// UnicodeHeavyX is the character that represents an error
	UnicodeHeavyX = "✘"
	// ActionLoopDelaySeconds is the number of seconds to delay in the ActionLoop before running the loop again
	ActionLoopDelaySeconds = 5

	// TimesheetStatusIdle represents an idle timesheet
	TimesheetStatusIdle = iota
	// TimesheetStatusRunning represents a running timesheet
	TimesheetStatusRunning
	// TimesheetStatusError represents a timesheet error
	TimesheetStatusError

	// DefaultDatabaseFileName is the default file name of the timetracker database
	DefaultDatabaseFileName = "timetracker.db"

	// ConfigDirectoryMode is the octal mode of the timetracker config directory if it needs to be created
	ConfigDirectoryMode = 0755

	// DefaultLogLevel is the default logger level
	DefaultLogLevel = "info"

	// PrefKeyCloseWindowStopTask is the preferences key for the flag which causes the main window to close after creating a new task
	PrefKeyCloseWindowStopTask = "close-window:stop-task"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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