Documentation ¶
Index ¶
- Constants
- func CamelToSnake(s string) string
- func GenCode(n int) string
- func GenRandomStr() string
- func GetRandomString(length int64, mod uint32) string
- func HashCode(s string) uint32
- func InvertStr(s string) string
- func IsAllEmpty(args ...string) bool
- func IsAllLetter(s string) bool
- func IsAnyEmpty(args ...string) bool
- func IsCapitalizedFirst(s string) bool
- func IsSameByRegroup(s1, s2 string) bool
- func Md5(s string) string
- func MixStrDecode(s string) string
- func MixStrEncode(s string) string
- func ReplaceBlank(s string) string
- func Sha256(dst string) string
- func Sha256WithSalt(dst string, salt string) string
- func SnakeToCamel(s string) string
- func ToLowerFirst(s string) string
- func ToUpperFirst(s string) string
Constants ¶
View Source
const ( RandomStringModNumberPlusLetter = 1 RandomStringModNumberPlusLetterPlusSymbol = 2 RandomStringModNumber = 3 )
Variables ¶
This section is empty.
Functions ¶
func GenRandomStr ¶
func GenRandomStr() string
func GetRandomString ¶
func IsAllEmpty ¶
func IsAllLetter ¶
func IsAnyEmpty ¶
func IsCapitalizedFirst ¶
func IsSameByRegroup ¶
IsSameByRegroup Whether the two strings are the same after sorting and reorganization
func ReplaceBlank ¶
func Sha256WithSalt ¶
func ToLowerFirst ¶
ToLowerFirst Make the first letter of a string lowercase
func ToUpperFirst ¶
ToUpperFirst Capitalize the first letter of a string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.