Documentation
¶
Index ¶
- func Base64UrlDecode(input string) (string, error)
- func Base64UrlEncode(input string) string
- func Basename(path, suffix string) string
- func ByteLength(s string) int
- func ByteSubstr(s string, start int, length int) string
- func CountWords(s string) int
- func Dirname(path string) string
- func EndsWith(s, suffix string, caseSensitive bool) bool
- func Explode(s, delimiter string, trim bool, skipEmpty bool) []string
- func FloatToString(number float64) string
- func MatchWildcard(pattern, s string, caseSensitive bool) bool
- func MbUcfirst(s, encoding string) string
- func MbUcwords(s, encoding string) string
- func NormalizeNumber(value interface{}) string
- func StartsWith(s, prefix string, caseSensitive bool) bool
- func Truncate(s string, length int, suffix string) string
- func TruncateWords(s string, count int, suffix string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64UrlDecode ¶
Base64UrlDecode 解码 URL 和文件名安全的 Base64 编码字符串
func Base64UrlEncode ¶
Base64UrlEncode 对字符串进行 URL 和文件名安全的 Base64 编码
func ByteSubstr ¶
ByteSubstr 返回从 start 开始、长度为 length 的子字符串
func MatchWildcard ¶
MatchWildcard 检查字符串是否匹配给定的通配符模式
func NormalizeNumber ¶
func NormalizeNumber(value interface{}) string
NormalizeNumber 将数字字符串中的逗号替换为点
func StartsWith ¶
StartsWith 检查字符串是否以指定的子字符串开头
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.