Documentation ¶
Index ¶
- Constants
- func Equals(sor string, tar string) bool
- func EqualsIgnoreCase(sor string, tar string) bool
- func FirstLetter2Lower(str string) string
- func GetCurrentGid() string
- func IsBlank(str string) bool
- func IsNotBlank(str string) bool
- func JoinPaths(absolutePath, relativePath string) string
- func LastChar(str string) uint8
- func MD5(data string) string
- func NameSnake(name string) string
- func RandStr(length int) string
- func SpitNotLetterAndNumber(str string) []string
Constants ¶
View Source
const ( Empty = "" // 空字符串 Comma = "," // 逗号 Space = " " // 空格 Underscore = "_" // 下划线 Colon = ":" // 冒号 Dash = "-" // 短横线 Dot = "." // 点 Asterisk = "*" // 星号 Slash = "/" // 斜杠 Zero = "0" // 0 One = "1" // 1 True = "true" // true False = "false" // false Goroutine = "goroutine" // 协程字符串 Json = "json" // json Omitempty = "omitempty" // omitempty LetterAndNumber = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" // 字母和数字 Crlf = "\r\n" // 回车换行 Quote = "\"" // 双引号 // CharSlash 字符 CharSlash = '/' // 斜杠 CharSpace = ' ' // 空格 )
Variables ¶
This section is empty.
Functions ¶
func EqualsIgnoreCase ¶
func FirstLetter2Lower ¶
FirstLetter2Lower 将字符串的首字母转换为小写(小驼峰)
func IsNotBlank ¶
func SpitNotLetterAndNumber ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.