Documentation ¶
Index ¶
- func BuildAsciiMeterCurrentTotal(portion int64, total int64, width int) string
- func FormatLocalDate(when time.Time) string
- func FormatLocalDateTimeAmPmZone(when time.Time) string
- func FormatLocalTimeAmPmSecs(when time.Time) string
- func I64ToString(i int64) string
- func LowerTitle(s string) string
- func RemoveAllRegex(pattern string, src string) string
- func ReplaceAllRegex(pattern string, src string, replace string) string
- func TakeLeft(s string, max int) string
- func TakeRight(s string, max int) string
- func ToLocalTime(when time.Time) time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAsciiMeterCurrentTotal ¶
Builds a one-line meter using the amount and total values limited to the given width
func FormatLocalDate ¶
Formats a time with the local time zone including date
func FormatLocalDateTimeAmPmZone ¶
Formats a time with the local time zone including date, time, am/pm, and zone
func FormatLocalTimeAmPmSecs ¶
Formats a time with the local time zone including time and am/pm
func LowerTitle ¶
Renders a string to lower title case (all lower case except for initial chars in each word)
func RemoveAllRegex ¶
Removes all regex matches in a string
func ReplaceAllRegex ¶
Replaces all regex matches in a string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.