Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmojiMap = map[string]Emoji{}/* 1854 elements not displayed */
Functions ¶
func CheckIfError ¶
func CheckIfError(err error)
func CheckIfInterrupt ¶
func CheckIfInterrupt(err error)
func ConvertToHex ¶
func DurationConverter ¶
DurationConverter takes period and duration for a status and converts it into minutes also returns absolute duration for showing on help messages
func HandleNoProfiles ¶
func HandleNoProfiles()
Types ¶
type ParsedDuration ¶
func ParseDuration ¶
func ParseDuration(duration string) ParsedDuration
Parses user duration for minute, hour, and day. Defaults to minutes.
@CONDITIONS minutes cannot be more than 43800 hours cannot be more than 730 day cannot be more than 30
@REGEX:
(?P<Name>pattern) = match group ^\d+ = starts with any digits with one or more matches \s? = optional whitespace characters --- -- Matches for duration suffix (m$|min$|minutes?|h$|hr$|hours?|d$|days?)? $ = match with character/word ending before the symbol | = OR
Click to show internal directories.
Click to hide internal directories.