Documentation ¶
Index ¶
- Constants
- func AddOrdinals(s string) string
- func ChangeDigitLanguage(str *string, lang string)
- func GetList(str, seperator string) ([]string, bool)
- func GetStrIfTrue(s string, l bool) string
- func IndexOf(ss []string, e string) int
- func IsDigit(s string) bool
- func PrettyTime(h string, m string) (string, error)
- func RunPrompt(label string, items []string) (string, error)
- func TrimExtraSpaces(s string) string
- func Unique(ss []string) []string
Constants ¶
View Source
const (
Logo = `` /* 655-byte string literal not displayed */
)
THe app logo
Variables ¶
This section is empty.
Functions ¶
func AddOrdinals ¶
AddOrdinals add ordinal indicators like 1 -> 1st 2 -> 2nd and so on
func ChangeDigitLanguage ¶
ChangeDigitLanguage changes the language of any numeric chars in the string
func GetList ¶
GetList takes a string & returns a slice separated by the separator provided & true/false based on the length of the slice
func GetStrIfTrue ¶
GetStrIfTrue returns the given string if the provided bool is true
func IndexOf ¶
IndexOf returns the index of the first occurence of the element matched in the string slice
func PrettyTime ¶
PrettyTime takes hour and minute and returns then with a proper time layout
func TrimExtraSpaces ¶
TrimExtraSpaces Trims any extra space (should be one space gaps)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.