strings

package
v1.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoldInt

func BoldInt(s int) string

boldInt returns a bolded string representation of an integer.

func CleanContent

func CleanContent(msg string) string

cleanContent removes unwanted characters from the rowContent string

func DQuote

func DQuote(s string) string

dQuote returns a string with the double quote symbol around it.

func Downcase

func Downcase(s string) string

func Human

func Human(v any) string

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

func HumanDiskSize(input uint64) string

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 Italic

func Italic(s string) string

italic returns a string with the italic style applied to it.

func PQuote

func PQuote(s string) string

pQuote returns a string with the square bracket symbol around it.

func QQuote

func QQuote(s string) string

qQuote returns a string with the square quote symbol around it.

func SQuote

func SQuote(s string) string

sQuote returns a string with the single quote symbol around it.

func TrimRepeatingCharacters

func TrimRepeatingCharacters(s string, c string) string

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.

func Upcase

func Upcase(s string) string

The upcase function in Go converts a string to uppercase. upcase converts a string to uppercase.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL