Documentation ¶
Index ¶
- Constants
- func ASCIItoTviewColors(text string) string
- func ColorFor(label string) tcell.Color
- func IsToday(date time.Time) bool
- func PrettyDate(dateStr string) string
- func Round(num float64) int
- func SetTerminal(config *config.Config)
- func TruncateFloat64(num float64, precision int) float64
- func UnixTime(unix int64) time.Time
- type Enablable
- type Schedulable
- type Stoppable
- type Wtfable
Constants ¶
View Source
const ( // DateFormat defines the format we expect to receive dates from BambooHR in DateFormat = "2006-01-02" // TimeFormat defines the format we expect to receive times from BambooHR in TimeFormat = "15:04" )
Variables ¶
This section is empty.
Functions ¶
func ASCIItoTviewColors ¶
func PrettyDate ¶
PrettyDate takes a programmer-style date string and converts it in a friendlier-to-read format
func SetTerminal ¶
SetTerminal sets the TERM environment variable, defaulting to whatever the OS has as the current value if none is specified. See https://www.gnu.org/software/gettext/manual/html_node/The-TERM-variable.html for more details.
func TruncateFloat64 ¶
TruncateFloat64 truncates the decimal places of a float64 to the specified precision
Types ¶
type Schedulable ¶
Schedulable is the interface that enforces scheduling capabilities on a module
type Stoppable ¶
type Stoppable interface {
Stop()
}
Stoppable is the interface that enforces a stoppable state
type Wtfable ¶
type Wtfable interface { Enablable Schedulable Stoppable BorderColor() string ConfigText() string FocusChar() string Focusable() bool HelpText() string Name() string QuitChan() chan bool SetFocusChar(string) TextView() *tview.TextView CommonSettings() *cfg.Common }
Wtfable is the interface that enforces WTF system capabilities on a module
Click to show internal directories.
Click to hide internal directories.