Documentation ¶
Index ¶
- Constants
- func ByteLength(s string) int
- func CalcStrFreq(str, cond string) (n int)
- func FormatToByteLength(text string, targetBytes int, leftAlign bool) string
- func HexToInt64(hexStr string) (int64, error)
- func HexToNum[T int | int8 | int16 | int32 | int64](hexStr string) (ret T, err error)
- func IsWhitespace(r rune) bool
- func RemoveSpace(str string) string
- func RemoveSpec(str string, spec string) string
- func Split(src string, flagList []string) []string
- func SplitByLen(s string, length int) []string
- func SplitRuneByLen(s string, length int) []string
- func ToCamel(input string) string
- func ToFirstLower(s string) string
- func ToFirstUpper(s string) string
- func ToHeader(input string) string
- func ToPascal(input string) string
- func ToProperty(input string) string
- func ToSnake(input string) string
- func ToTitle(input string) string
Constants ¶
View Source
const ( IconSuccess = "✅" IconError = "❌" IconWarning = "⚠️" IconNotification = "🔔" IconWaiting = "🕐" IconLocked = "🔒" IconUnlocked = "🔓" IconMessage = "💬" IconDocument = "📄" IconUp = "⬆️" IconDown = "⬇️" )
View Source
const ( IconTrendUp = "📈" IconTrendDown = "📉" IconRefresh = "🔄" IconEdit = "📝" IconStats = "📊" IconLocation = "📍" )
Variables ¶
This section is empty.
Functions ¶
func ByteLength ¶ added in v1.11.7
func FormatToByteLength ¶ added in v1.11.7
func HexToInt64 ¶ added in v1.9.1
func IsWhitespace ¶
func RemoveSpace ¶
func RemoveSpec ¶
func SplitByLen ¶
func SplitRuneByLen ¶
func ToProperty ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.