Documentation ¶
Index ¶
- func BuildAsciiMeterCurrentTotal(portion uint32, total uint32, width int) string
- func FormatBytes(i int64) string
- func FormatLocalDate(when time.Time) string
- func FormatLocalDateTime(when time.Time) string
- func FormatLocalTime(when time.Time) string
- func I32ToString(i int32) string
- func I64ToString(i int64) string
- func LowerTitle(s string) string
- func RemoveAllBeforeLastChar(delimiter string, src *string) string
- func TakeLeft(s string, max int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAsciiMeterCurrentTotal ¶
BuildAsciiMeterCurrentTotal builds a one-line meter using the amount and total values limited to the given width
func FormatBytes ¶
FormatBytes formats an *int64 into a string with size suffix
func FormatLocalDate ¶
FormatLocalDate formats a date with the local time zone
func FormatLocalDateTime ¶
FormatLocalDateTime formats a datetime with the local time zone
func FormatLocalTime ¶
FormatLocalTime formats a time with the local time zone
func LowerTitle ¶
LowerTitle renders a string to lower title case (all lower case except for initial chars in each word)
func RemoveAllBeforeLastChar ¶
RemoveAllBeforeLastChar removes all characaters before and including delimiter
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.