Documentation
¶
Index ¶
- func BoldInt(s int) string
- func CleanContent(msg string) string
- func DQuote(s string) string
- func Downcase(s string) string
- func Human(v any) string
- func HumanDiskSize(input uint64) string
- func Italic(s string) string
- func PQuote(s string) string
- func QQuote(s string) string
- func SQuote(s string) string
- func TrimRepeatingCharacters(s string, c string) string
- func Upcase(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanContent ¶
cleanContent removes unwanted characters from the rowContent string
func Human ¶
The `humanNumber` method of the `Crt` struct is used to convert a value to a human-readable string. It takes a parameter `v` of type `any`, which means it can accept any type of value.
func HumanDiskSize ¶
The function `humanDiskSize` converts a given input value representing disk size in bytes to a human-readable format in gigabytes (GB) and terabytes (TB).
func TrimRepeatingCharacters ¶
The function `trimRepeatingCharacters` takes a string `s` and a character `c` as input, and returns a new string with all consecutive occurrences of `c` trimmed down to a single occurrence.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.